summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-03 19:10:53 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-03 19:10:53 +0200
commitee7e326ed33c6fcd736c0265576d88fce21394d5 (patch)
tree7af8eb3d53528abc23741c495344292150773ab1
parentaf91fbee05397b82874d5889f3783cbc28da3048 (diff)
add initial swagger API documentation
-rw-r--r--api/dataset.json83
1 files changed, 83 insertions, 0 deletions
diff --git a/api/dataset.json b/api/dataset.json
new file mode 100644
index 0000000..c4727a4
--- /dev/null
+++ b/api/dataset.json
@@ -0,0 +1,83 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "version": "5.0.0pre1",
+ "title": "OpenTox Dataset service",
+ "description": "An OpenTox REST Webservice. \nStores associations between compounds and features in datasets.\n",
+ "contact": {
+ "name": "Christoph Helma, in silico toxicology"
+ },
+ "license": {
+ "name": "GNU GENERAL PUBLIC LICENSE",
+ "url": "https://github.com/opentox/dataset/blob/master/LICENSE"
+ }
+ },
+ "host": "enm.in-silico.ch",
+ "schemes": [
+ "https"
+ ],
+ "paths": {
+ "/dataset": {
+ "head": {
+ "tags": [
+ "dataset"
+ ],
+ "description": "for service check",
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "503": {
+ "description": "Service Unavailable"
+ }
+ }
+ },
+ "get": {
+ "description": "Get a list of all datasets",
+ "parameters": [
+ {
+ "name": "accept",
+ "in": "header",
+ "description": "requested Content-type",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "application/rdf+xml",
+ "text/turtle",
+ "text/plain",
+ "text/uri-list",
+ "text/html",
+ "application/sparql-results+xml"
+ ]
+ },
+ {
+ "name": "subjectid",
+ "in": "header",
+ "description": "authorization token if A&A active",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "produces": [
+ "application/rdf+xml",
+ "text/turtle",
+ "text/plain",
+ "text/uri-list",
+ "text/html",
+ "application/sparql-results+xml"
+ ],
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "400": {
+ "description": "Bad Request"
+ },
+ "404": {
+ "description": "Not Authorized"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file