Last active
February 27, 2017 18:36
-
-
Save marbemac/9cbac9865d55bf8642863b060cd192f4 to your computer and use it in GitHub Desktop.
todos swagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0", | |
"title": "To-do Demo", | |
"description": "## Welcome\n\nThis is a place to put general notes and extra information, for internal use.\n\nTo get started designing/documenting this API, select a version on the left. # Title\nNo Description" | |
}, | |
"host": "todos.stoplight.io", | |
"schemes": [ | |
"http" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/todos": { | |
"get": { | |
"operationId": "GET_todos", | |
"summary": "List Todos", | |
"tags": [ | |
"Todos" | |
], | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/todo-full" | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"todo-full": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "integer" | |
} | |
}, | |
"required": [ | |
"id" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment