summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-06-28 14:35:20 +0000
committergebele <gebele@in-silico.ch>2018-06-28 14:35:20 +0000
commit395506ca3fe4daa5689fd197e57f7ab944beb1d7 (patch)
treed840d4678eada31dc9937da7dd85ee60a714d4c4 /api
parentba65db7e62264b94a7303681e30db4ac415b4822 (diff)
updated API and request path handling
Diffstat (limited to 'api')
-rw-r--r--api/api.json95
1 files changed, 91 insertions, 4 deletions
diff --git a/api/api.json b/api/api.json
index 9976569..6aa95ad 100644
--- a/api/api.json
+++ b/api/api.json
@@ -19,7 +19,7 @@
"title": "Lazar & Nano-Lazar REST Service",
"contact": {
"name": "in silico toxicology gmbh",
- "email": "info@in-silico.ch",
+ "email": "service@in-silico.ch",
"url": "https://in-silico.ch"
},
"license": {
@@ -268,8 +268,34 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/200"
- },
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "x-orn:returns": "application/json",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "text/csv": {
+ "x-orn:returns": "text/csv",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "application/csv": {
+ "x-orn:returns": "text/csv",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ }
+ }
+ },
"400": {
"$ref": "#/components/responses/400"
},
@@ -813,10 +839,71 @@
],
"responses": {
"200": {
- "$ref": "#/components/responses/200"
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "x-orn:returns": "application/json",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "chemical/x-daylight-smiles": {
+ "x-orn:returns": "chemical/x-daylight-smiles",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "chemical/x-inchi": {
+ "x-orn:returns": "chemical/x-inchi",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "chemical/x-mdl-sdfile": {
+ "x-orn:returns": "chemical/x-mdl-sdfile",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "image/png": {
+ "x-orn:returns": "image/png",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "image/svg+xml": {
+ "x-orn:returns": "image/svg+xml",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ },
+ "text/plain": {
+ "x-orn:returns": "text/plain",
+ "schema": {
+ "x-orn:property": "InChI",
+ "type": "string",
+ "example": "InChI=1S/C6H6/c1-2-4-6-5-3-1/h1-6H"
+ }
+ }
+ }
},
"400": {
"$ref": "#/components/responses/400"
+ },
+ "500": {
+ "$ref": "#/components/responses/500"
}
}
}