summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-03 19:45:24 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-03 19:45:24 +0200
commit68c27c3a66ffaf959c3c5271952f5638177fc46a (patch)
treeb0d6a7447ebb0b44b540067edb39a7d69dad5831
parent42b97c80b73558516045634b880648c7f1416646 (diff)
add /dataset/id/compounds and /dataset/id/features route
-rw-r--r--api/dataset.json67
1 files changed, 67 insertions, 0 deletions
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