summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-03 19:30:21 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-03 19:30:21 +0200
commit3e346278f0722f4f8da17d8d650e39d0506da0d2 (patch)
tree326c77c370307ba50f3dfb35cca75a780c4a0484
parentc7addf1e2efb0f7496a423e513c95fc998b12292 (diff)
add /dataset/id route
-rw-r--r--api/dataset.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/api/dataset.json b/api/dataset.json
index 8799bc6..c9825ec 100644
--- a/api/dataset.json
+++ b/api/dataset.json
@@ -81,6 +81,62 @@
}
}
}
+ },
+ "/dataset/{id}": {
+ "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": "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": [
+ "application/rdf+xml",
+ "text/turtle",
+ "text/plain",
+ "text/html",
+ "text/csv"
+ ]
+ }
+ ],
+ "produces": [
+ "application/rdf+xml",
+ "text/turtle",
+ "text/plain",
+ "text/html",
+ "text/csv"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "400": {
+ "description": "Bad Request"
+ },
+ "404": {
+ "description": "Not Authorized"
+ }
+ }
+ }
}
}
} \ No newline at end of file