diff options
author | rautenberg <rautenberg@in-silico.ch> | 2016-09-01 11:12:18 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2016-09-01 11:12:18 +0200 |
commit | 24e0b815b716af488d6b5fb2f66c30e59cdb265b (patch) | |
tree | ad92d7aaef43fd99e8125841026920b13524db81 /api | |
parent | f96a6cdfed2b41a3262239a125fc8302ec548914 (diff) |
add route for substance
Diffstat (limited to 'api')
-rw-r--r-- | api/api.json | 89 |
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 |