add more validation routes to swagger
authorrautenberg <rautenberg@in-silico.ch>
Mon, 29 Aug 2016 08:17:47 +0000 (10:17 +0200)
committerrautenberg <rautenberg@in-silico.ch>
Mon, 29 Aug 2016 08:17:47 +0000 (10:17 +0200)
api/api.json

index 4141a2b..c1c8bc8 100644 (file)
@@ -80,7 +80,7 @@
                         ]
                     },
                     {
-                        "$ref": "#/parameters/modelid"
+                        "$ref": "#/parameters/id"
                     }
                 ],
                 "produces": [
                         "type": "string"
                     },
                     {
-                        "$ref": "#/parameters/modelid"
+                        "$ref": "#/parameters/id"
                     }
                 ],
                 "produces": [
                 }
             }
         },
+        "/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": [
                 ],
                 "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": {
         }
     },
     "parameters": {
-        "modelid": {
+        "id": {
             "name": "id",
             "in": "path",
-            "description": "model id",
+            "description": "id",
             "required": true,
             "type": "string"
         },