1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Swagger: Add information to API Token header (#7585)

* Add a description to the API Token header for swagger
This commit is contained in:
zeripath 2019-07-24 09:34:11 +01:00 committed by GitHub
parent 2c5c458dd7
commit 635e7b38bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@
// type: apiKey // type: apiKey
// name: Authorization // name: Authorization
// in: header // in: header
// description: API tokens must be prepended with "token" followed by a space.
// SudoParam: // SudoParam:
// type: apiKey // type: apiKey
// name: sudo // name: sudo

View file

@ -10390,6 +10390,7 @@
"in": "query" "in": "query"
}, },
"AuthorizationHeaderToken": { "AuthorizationHeaderToken": {
"description": "API tokens must be prepended with \"token\" followed by a space.",
"type": "apiKey", "type": "apiKey",
"name": "Authorization", "name": "Authorization",
"in": "header" "in": "header"