From 24e0b815b716af488d6b5fb2f66c30e59cdb265b Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 1 Sep 2016 11:12:18 +0200 Subject: add route for substance --- api/api.json | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) (limited to 'api/api.json') 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 -- cgit v1.2.3