From 0f4bda4fc1789645755619ff852d062b5eec70f7 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 25 Jun 2015 10:32:51 +0200 Subject: add more routes to API --- api/algorithm.json | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 177 insertions(+), 1 deletion(-) 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.
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": { -- cgit v1.2.3