From 59a5288de80282403d30697f77169c5169d58deb Mon Sep 17 00:00:00 2001 From: rautenberg Date: Fri, 18 Sep 2015 09:27:27 +0200 Subject: add get model/{id} route to api --- api/api.json | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 7 deletions(-) (limited to 'api') diff --git a/api/api.json b/api/api.json index 5fd14b8..afc4603 100644 --- a/api/api.json +++ b/api/api.json @@ -62,6 +62,47 @@ } }, "/model/{id}": { + "get": { + "tags": [ + "model" + ], + "description": "Get model representation", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "body Content-Type", + "required": true, + "type": "string", + "enum": [ + "application/json" + ] + }, + { + "$ref": "#/parameters/modelid" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + } + } + }, "post": { "tags": [ "model" @@ -103,6 +144,12 @@ "400": { "$ref": "#/responses/400" }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, "404": { "$ref": "#/responses/404" } @@ -125,9 +172,6 @@ "400": { "$ref": "#/responses/400" }, - "401": { - "$ref": "#/responses/401" - }, "500": { "$ref": "#/responses/500" } @@ -148,15 +192,15 @@ "200": { "description": "OK" }, - "202": { - "description": "Accepted" - }, "400": { "description": "Bad Request" }, "401": { "description": "Unauthorized" }, + "403": { + "description": "Forbidden" + }, "404": { "description": "Resource Not Found" }, @@ -174,4 +218,4 @@ "description": "Swagger API representation in JSON" } ] -} +} \ No newline at end of file -- cgit v1.2.3