diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-10-28 14:10:12 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-10-28 14:10:12 +0100 |
commit | a44021a342e8adfd0126f11334f5665f42f43d2a (patch) | |
tree | 61f1dda83e38c152757b2db53aef63371405b5a6 /api/api.json | |
parent | 26a387b961e4d9340adf2f7f2ee8a9a95152e66d (diff) |
API: add route POST /algorithm/descriptor
Diffstat (limited to 'api/api.json')
-rw-r--r-- | api/api.json | 58 |
1 files changed, 58 insertions, 0 deletions
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}": { |