From e762b3027806f72093a1bda5600c18ce7090122a Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 27 Oct 2016 21:28:03 +0200 Subject: [PATCH] Add Duck definition to Swagger file --- swagger/swagger.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index f026d8b..2adeab1 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -19,6 +19,10 @@ paths: responses: 200: description: "An object which contains metadata and an array of ducks" + schema: + type: "array" + items: + $ref: "#/definitions/Duck" security: - api_key: [] securityDefinitions: @@ -26,4 +30,8 @@ securityDefinitions: type: "apiKey" name: "token" in: "header" -definitions: {} +definitions: + Duck: + properties: + name: + type: "string"