From a44021a342e8adfd0126f11334f5665f42f43d2a Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 28 Oct 2015 14:10:12 +0100 Subject: API: add route POST /algorithm/descriptor --- api/api.json | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/api/api.json b/api/api.json index 80d742e..4e3fe4e 100644 --- a/api/api.json +++ b/api/api.json @@ -183,6 +183,64 @@ "$ref": "#/responses/500" } } + }, + "post": { + "tags": [ + "algorithm", + "descriptor" + ], + "description": "Calculate desriptors for compounds", + "parameters": [ + { + "name": "accept", + "in": "header", + "description": "requested Content-Type", + "required": true, + "type": "string", + "enum": [ + "text/plain", + "application/json" + ] + }, + { + "name": "file", + "in": "formData", + "description": "CSV file of compounds", + "required": true, + "type": "file" + }, + { + "name": "descriptor", + "in": "formData", + "description": "array of descriptors", + "required": true, + "type": "array", + "items": { + "type": "string" + } + } + ], + "produces": [ + "text/plain", + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } } }, "/algorithm/descriptor/{descriptor}": { -- cgit v1.2.3