Parcourir la source

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

* Add a description to the API Token header for swagger
tags/v1.10.0-rc1
zeripath il y a 4 ans
Parent
révision
635e7b38bd
Aucun compte lié à l'adresse e-mail de l'auteur
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 1
    0
      routers/api/v1/api.go
  2. 1
    0
      templates/swagger/v1_json.tmpl

+ 1
- 0
routers/api/v1/api.go Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer