diff options
author | rautenberg <rautenberg@in-silico.ch> | 2016-08-29 10:17:47 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2016-08-29 10:17:47 +0200 |
commit | 3d72257f37de2f542f97143b1109a845e1977a8a (patch) | |
tree | 53630689036c4829013e8a2b9ebff9aca354d623 /api | |
parent | a1487810527c92ec28b35588c886563162f967d7 (diff) |
add more validation routes to swagger
Diffstat (limited to 'api')
-rw-r--r-- | api/api.json | 67 |
1 files changed, 62 insertions, 5 deletions
diff --git a/api/api.json b/api/api.json index 4141a2b..c1c8bc8 100644 --- a/api/api.json +++ b/api/api.json @@ -80,7 +80,7 @@ ] }, { - "$ref": "#/parameters/modelid" + "$ref": "#/parameters/id" } ], "produces": [ @@ -118,7 +118,7 @@ "type": "string" }, { - "$ref": "#/parameters/modelid" + "$ref": "#/parameters/id" } ], "produces": [ @@ -185,6 +185,51 @@ } } }, + "/validation/{validationtype}": { + "get": { + "tags": [ + "validation" + ], + "description": "Get all validations of a validation type", + "parameters": [ + { + "name": "accept", + "in": "header", + "description": "requested Content-Type", + "required": true, + "type": "string", + "enum": [ + "text/uri-list", + "application/json" + ] + }, + { + "$ref": "#/parameters/valtype" + } + ], + "produces": [ + "text/uri-list", + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, "/validation/{validationtype}/{id}": { "get": { "tags": [ @@ -193,13 +238,25 @@ "description": "Get Validation representation", "parameters": [ { + "name": "accept", + "in": "header", + "description": "requested Content-Type", + "required": true, + "type": "string", + "enum": [ + "text/uri-list", + "application/json" + ] + }, + { "$ref": "#/parameters/valtype" }, { - "$ref": "#/parameters/modelid" + "$ref": "#/parameters/id" } ], "produces": [ + "text/uri-list", "application/json" ], "responses": { @@ -452,10 +509,10 @@ } }, "parameters": { - "modelid": { + "id": { "name": "id", "in": "path", - "description": "model id", + "description": "id", "required": true, "type": "string" }, |