From e31d738df6652158c9f6e69547aeeb018dcffb21 Mon Sep 17 00:00:00 2001 From: Tosuke Date: Fri, 6 Jan 2017 00:53:28 +0900 Subject: [PATCH] [Swagger]Add response definitions --- swagger.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/swagger.js b/swagger.js index defd31b28..91b96e1f4 100644 --- a/swagger.js +++ b/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": [] };