Skip to content

Instantly share code, notes, and snippets.

@marbemac
Last active February 27, 2017 18:36
Show Gist options
  • Save marbemac/9cbac9865d55bf8642863b060cd192f4 to your computer and use it in GitHub Desktop.
Save marbemac/9cbac9865d55bf8642863b060cd192f4 to your computer and use it in GitHub Desktop.
todos swagger
{
"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