Skip to content

Commit 635e7b3

Browse files
authored
Swagger: Add information to API Token header (#7585)
* Add a description to the API Token header for swagger
1 parent 2c5c458 commit 635e7b3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
// type: apiKey
4444
// name: Authorization
4545
// in: header
46+
// description: API tokens must be prepended with "token" followed by a space.
4647
// SudoParam:
4748
// type: apiKey
4849
// name: sudo

templates/swagger/v1_json.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10390,6 +10390,7 @@
1039010390
"in": "query"
1039110391
},
1039210392
"AuthorizationHeaderToken": {
10393+
"description": "API tokens must be prepended with \"token\" followed by a space.",
1039310394
"type": "apiKey",
1039410395
"name": "Authorization",
1039510396
"in": "header"

0 commit comments

Comments
 (0)