From 68c27c3a66ffaf959c3c5271952f5638177fc46a Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 3 Jun 2015 19:45:24 +0200 Subject: add /dataset/id/compounds and /dataset/id/features route --- api/dataset.json | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/api/dataset.json b/api/dataset.json index e938223..8104ce0 100644 --- a/api/dataset.json +++ b/api/dataset.json @@ -137,6 +137,73 @@ } } } + }, + "/dataset/{id}/{features_or_compounds}": { + "get": { + "tags": [ + "dataset" + ], + "description": "Get a list of all datasets", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Id of the dataset", + "required": true, + "type": "string" + }, + { + "name": "features_or_compounds", + "in": "path", + "description": "features or compounds of the dataset", + "required": true, + "type": "string", + "enum": [ + "compounds", + "features" + ] + }, + { + "name": "subjectid", + "in": "header", + "description": "authorization token if A&A active", + "required": false, + "type": "string" + }, + { + "name": "accept", + "in": "header", + "description": "requested Content-type", + "required": true, + "type": "string", + "enum": [ + "text/plain", + "text/turtle", + "application/rdf+xml", + "text/html", + "text/csv" + ] + } + ], + "produces": [ + "text/plain", + "text/turtle", + "application/rdf+xml", + "text/html", + "text/csv" + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Authorized" + } + } + } } } } \ No newline at end of file -- cgit v1.2.3