1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 08:18:14 +09:00

[Swagger]Add response definitions

This commit is contained in:
Tosuke 2017-01-06 00:53:28 +09:00
parent 24b82c30e8
commit 2a0291e285

View File

@ -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": []
};