mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
[Swagger]Add response definitions
This commit is contained in:
parent
5db81b938f
commit
e31d738df6
1 changed files with 23 additions and 2 deletions
25
swagger.js
25
swagger.js
|
@ -28,6 +28,29 @@ const defaultSwagger = {
|
|||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
|
||||
"responses": {
|
||||
"ShouldSecureKey": {
|
||||
"name": "i",
|
||||
"description": "secure key",
|
||||
"in": "formData",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"SecureKey": {
|
||||
"name": "i",
|
||||
"description": "secure key",
|
||||
"in": "formData",
|
||||
"type": "string"
|
||||
},
|
||||
"NormalKey": {
|
||||
"name": "_userkey",
|
||||
"description": "normal key",
|
||||
"in": "formData",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
||||
"definitions": {
|
||||
"Error": {
|
||||
"type": "object",
|
||||
|
@ -173,8 +196,6 @@ const defaultSwagger = {
|
|||
}
|
||||
}
|
||||
},
|
||||
"responses": {},
|
||||
"parameters": {},
|
||||
"securityDefinitions": {},
|
||||
"tags": []
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue