From 9b36bed2cd94f2b5ba9f25747e57859b5a432447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 4 Apr 2019 20:24:49 +0200 Subject: [PATCH] initial release --- openapi-spec.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 openapi-spec.yaml diff --git a/openapi-spec.yaml b/openapi-spec.yaml new file mode 100644 index 0000000..c2d0a60 --- /dev/null +++ b/openapi-spec.yaml @@ -0,0 +1,41 @@ +swagger: '2.0' +info: + title: 'TODO List API' + description: Manage TODO's + version: '1.0.0' +paths: + /todo: + get: + summary: 'Get TODO' + description: 'Get all TODOs' + operationId: GetTODO + consumes: + - application/json + produces: + - application/json + responses: + '200': + description: OK + schema: + $ref: '#/definitions/TODO' +definitions: + TODO: + title: Root Type for TODO + description: a TODO + type: object + properties: + id: + format: int32 + type: integer + message: + type: string + example: >- + { "id": 1, "message": "a TODO" } +securityDefinitions: + apikey: + type: apiKey + description: Use a 3scale API Key + name: user_key + in: query +security: +- apikey: []