Просмотр исходного кода

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

* Add a description to the API Token header for swagger
tags/v1.10.0-rc1
zeripath 4 лет назад
Родитель
Сommit
635e7b38bd
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 2 добавлений и 0 удалений
  1. 1
    0
      routers/api/v1/api.go
  2. 1
    0
      templates/swagger/v1_json.tmpl

+ 1
- 0
routers/api/v1/api.go Просмотреть файл

@@ -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

+ 1
- 0
templates/swagger/v1_json.tmpl Просмотреть файл

@@ -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"

Загрузка…
Отмена
Сохранить