summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2016-09-01 11:12:18 +0200
committerrautenberg <rautenberg@in-silico.ch>2016-09-01 11:12:18 +0200
commit24e0b815b716af488d6b5fb2f66c30e59cdb265b (patch)
treead92d7aaef43fd99e8125841026920b13524db81 /api
parentf96a6cdfed2b41a3262239a125fc8302ec548914 (diff)
add route for substance
Diffstat (limited to 'api')
-rw-r--r--api/api.json89
1 files changed, 89 insertions, 0 deletions
diff --git a/api/api.json b/api/api.json
index f64959c..0ad3be8 100644
--- a/api/api.json
+++ b/api/api.json
@@ -284,6 +284,91 @@
}
}
},
+ "/substance": {
+ "get": {
+ "tags": [
+ "substance"
+ ],
+ "description": "Get a list of all substances",
+ "parameters": [
+ {
+ "name": "accept",
+ "in": "header",
+ "description": "requested Content-Type",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "text/uri-list",
+ "application/json"
+ ]
+ }
+ ],
+ "produces": [
+ "text/uri-list",
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/200"
+ },
+ "400": {
+ "$ref": "#/responses/400"
+ },
+ "401": {
+ "$ref": "#/responses/401"
+ },
+ "404": {
+ "$ref": "#/responses/404"
+ },
+ "500": {
+ "$ref": "#/responses/500"
+ }
+ }
+ }
+ },
+ "/substance/{id}": {
+ "get": {
+ "tags": [
+ "substance"
+ ],
+ "description": "Get substance representation",
+ "parameters": [
+ {
+ "name": "Content-Type",
+ "in": "header",
+ "description": "body Content-Type",
+ "required": true,
+ "type": "string",
+ "enum": [
+ "application/json"
+ ]
+ },
+ {
+ "$ref": "#/parameters/id"
+ }
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/200"
+ },
+ "400": {
+ "$ref": "#/responses/400"
+ },
+ "401": {
+ "$ref": "#/responses/401"
+ },
+ "403": {
+ "$ref": "#/responses/403"
+ },
+ "404": {
+ "$ref": "#/responses/404"
+ }
+ }
+ }
+ },
"/validation": {
"get": {
"tags": [
@@ -718,6 +803,10 @@
{
"name": "validation",
"description": "Validation"
+ },
+ {
+ "name": "substance",
+ "description": "Substance"
}
]
} \ No newline at end of file