Skip to content

Commit

Permalink
Swagger: Add information to API Token header (#7585)
Browse files Browse the repository at this point in the history
* Add a description to the API Token header for swagger
  • Loading branch information
zeripath committed Jul 24, 2019
1 parent 2c5c458 commit 635e7b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions routers/api/v1/api.go
Expand Up @@ -43,6 +43,7 @@
// type: apiKey
// name: Authorization
// in: header
// description: API tokens must be prepended with "token" followed by a space.
// SudoParam:
// type: apiKey
// name: sudo
Expand Down
1 change: 1 addition & 0 deletions templates/swagger/v1_json.tmpl
Expand Up @@ -10390,6 +10390,7 @@
"in": "query"
},
"AuthorizationHeaderToken": {
"description": "API tokens must be prepended with \"token\" followed by a space.",
"type": "apiKey",
"name": "Authorization",
"in": "header"
Expand Down

0 comments on commit 635e7b3

Please sign in to comment.