diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:32:51 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:33:41 +0200 |
commit | 0f4bda4fc1789645755619ff852d062b5eec70f7 (patch) | |
tree | 4a6e4243c29b98c5e532c442a297eb668995f7e2 | |
parent | 85cffa3cd2f86baf93d97c97b31e7638170b129c (diff) |
add more routes to API
-rw-r--r-- | api/algorithm.json | 178 |
1 files changed, 177 insertions, 1 deletions
diff --git a/api/algorithm.json b/api/algorithm.json index 1df7e04..c0520f0 100644 --- a/api/algorithm.json +++ b/api/algorithm.json @@ -5,7 +5,7 @@ "title": "OpenTox Algorithm service", "description": "An OpenTox REST Webservice. <br >Provides access to OpenTox algorithms.", "contact": { - "name": "Christoph Helma, in silico toxicology", + "name": "Christoph Helma, Andreas Maunz, in silico toxicology", "url": "http://www.in-silico.ch", "email": "support@in-silico.ch" }, @@ -243,6 +243,169 @@ } } } + }, + "/algorithm/fminer": { + "get": { + "tags": [ + "algorithm" + ], + "description": "Get list of fminer algorithms", + "produces": [ + "text/uri-list" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, + "/algorithm/fminer/bbrc": { + "get": { + "tags": [ + "algorithm" + ], + "description": "Get representation of BBRC algorithm", + "parameters": [ + { + "$ref": "#/parameters/accept_representation" + } + ], + "produces": [ + "text/plain", + "application/rdf+xml", + "text/turtle", + "text/html" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, + "/algorithm/fminer/bbrc/sample": { + "get": { + "tags": [ + "algorithm" + ], + "description": "Get representation of BBRC algorithm sample", + "parameters": [ + { + "$ref": "#/parameters/accept_representation" + } + ], + "produces": [ + "text/plain", + "application/rdf+xml", + "text/turtle", + "text/html" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, + "/algorithm/fminer/last": { + "get": { + "tags": [ + "algorithm" + ], + "description": "Get representation of fminer LAST-PM algorithm", + "parameters": [ + { + "$ref": "#/parameters/accept_representation" + } + ], + "produces": [ + "text/plain", + "application/rdf+xml", + "text/turtle", + "text/html" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, + "/algorithm/fminer/{method}/match": { + "get": { + "tags": [ + "algorithm" + ], + "description": "Get representation of matching algorithm", + "parameters": [ + { + "name": "method", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/accept_representation" + } + ], + "produces": [ + "text/plain", + "application/rdf+xml", + "text/turtle", + "text/html" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } } }, "parameters": { @@ -273,6 +436,19 @@ "in": "header", "required": false, "type": "string" + }, + "accept_representation": { + "name": "accept", + "in": "header", + "description": "requested Content-type", + "required": false, + "type": "string", + "enum": [ + "text/plain", + "application/rdf+xml", + "text/turtle", + "text/html" + ] } }, "responses": { |