This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Swagger: Add information to API Token header (
#7585
)
* Add a description to the API Token header for swagger
tags/v1.11.0-dev
zeripath
GitHub
6 years ago
parent
e183c18dd4
commit
72f71dfe4a
2 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
routers/api/v1/api.go
+1
-0
templates/swagger/v1_json.tmpl
+ 1
- 0
routers/api/v1/api.go
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
+ 1
- 0
templates/swagger/v1_json.tmpl
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"
Write
Preview
Loading…
Cancel
Save