This commit is contained in:
wadewegner 2015-12-07 20:35:42 -08:00
Родитель 817bb3131b
Коммит b568f1440b
2 изменённых файлов: 11 добавлений и 38 удалений

Просмотреть файл

@ -1,10 +0,0 @@
{
"$schema": "http://json-schema.org/schemas/2014-11-01/apiapp.json#",
"id": "GoTodoApiAppDemo",
"namespace": "microsoft.com",
"gateway": "2015-01-14",
"version": "1.0.0",
"title": "Go Todo Api App Demo",
"summary": "Build demo for showing a Go Api App",
"author": "Wade Wegner"
}

Просмотреть файл

@ -1,15 +1,13 @@
{
"swagger": "2.0",
"info": {
"title": "Go Todo Api App Demo",
"description": "Build demo for showing a Go Api App",
"title": "Go Todo PowerApps Demo",
"version": "1.0.0"
},
"host": "go-powerapp.herokuapp.com",
"schemes": [
"https"
"http"
],
"basePath": "/v1",
"produces": [
"application/json"
],
@ -21,6 +19,10 @@
"tags": [
"Todos"
],
"operationId": "ToDo",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "An array of todos",
@ -30,12 +32,6 @@
"$ref": "#/definitions/Todo"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
@ -43,38 +39,25 @@
},
"definitions": {
"Todo": {
"type": "object",
"properties": {
"Id": {
"id": {
"type": "number",
"description": "Unique id for todo"
},
"Name": {
"name": {
"type": "string",
"description": "Name of the todo item"
},
"Completed": {
"completed": {
"type": "boolean",
"description": "Is the todo item complete?."
},
"Due": {
"due": {
"type": "string",
"description": "Time the todo item is due."
}
}
},
"Error": {
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"fields": {
"type": "string"
}
}
}
}
}