summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-09-18 09:27:27 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-09-18 09:27:27 +0200
commit59a5288de80282403d30697f77169c5169d58deb (patch)
treebcee681560dd7a0cf2de9615635c9e003b925ca6 /api
parent44c37c49c835a230b3bbe06e67b6ff783e6f60b8 (diff)
add get model/{id} route to api
Diffstat (limited to 'api')
-rw-r--r--api/api.json58
1 files changed, 51 insertions, 7 deletions
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