summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2016-08-29 10:01:43 +0200
committerrautenberg <rautenberg@in-silico.ch>2016-08-29 10:01:43 +0200
commita1487810527c92ec28b35588c886563162f967d7 (patch)
treec81c811bd03a14fb21784f24015a9d919535b27a /api
parent452e50bb4760176f004b8c7faff379f69564b3d0 (diff)
add more validation routes
Diffstat (limited to 'api')
-rw-r--r--api/api.json74
1 files changed, 33 insertions, 41 deletions
diff --git a/api/api.json b/api/api.json
index 476b941..4141a2b 100644
--- a/api/api.json
+++ b/api/api.json
@@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"description": "REST Webservice for lazar and nano-lazar\n",
- "version": "0.0.1",
+ "version": "0.0.2",
"title": "Lazar & Nano-Lazar REST Service",
"contact": {
"name": "in silico toxicology gmbh",
@@ -186,46 +186,38 @@
}
},
"/validation/{validationtype}/{id}": {
- "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/valtype"
- },
- {
- "$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"
+ "get": {
+ "tags": [
+ "validation"
+ ],
+ "description": "Get Validation representation",
+ "parameters": [
+ {
+ "$ref": "#/parameters/valtype"
+ },
+ {
+ "$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"
+ }
}
}
},