diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:11:05 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:11:05 +0200 |
commit | 85cffa3cd2f86baf93d97c97b31e7638170b129c (patch) | |
tree | 8aa61485175e490ffbfd3601ae01da3ac3d95c05 | |
parent | 8729c6ee446e4edb2efde14d2fe0249ab2a29879 (diff) |
add /algorithm/lazar/predict route to API
-rw-r--r-- | api/algorithm.json | 102 |
1 files changed, 101 insertions, 1 deletions
diff --git a/api/algorithm.json b/api/algorithm.json index dcc581f..1df7e04 100644 --- a/api/algorithm.json +++ b/api/algorithm.json @@ -146,6 +146,103 @@ } } } + }, + "/algorithm/lazar/predict": { + "post": { + "tags": [ + "algorithm" + ], + "description": "Make a lazar prediction - <strong>not to be called directly!</strong>", + "parameters": [ + { + "name": "compound_uri", + "description": "URI of compound to be predicted", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "training_dataset_uri", + "description": "URI of training dataset", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "prediction_feature_uri", + "description": "URI of prediction feature", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "feature_dataset_uri", + "description": "URI of feature dataset", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "feature_calculation_algorithm", + "description": "Name of feature calculation algorithm", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "min_sim", + "description": "Numericvalue for minimum similarity", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "prediction_algorithm", + "description": "Name of prediction algorithm", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "propositionalized", + "description": "Whether propositionalization should be used", + "required": true, + "in": "header", + "type": "string" + }, + { + "name": "pc_type", + "description": "Physico-chemical descriptor type", + "required": false, + "in": "header", + "type": "string" + }, + { + "name": "pc_lib", + "description": "Physico-chemical descriptor library", + "required": false, + "in": "header", + "type": "string" + } + ], + "produces": [ + "text/uri-list" + ], + "responses": { + "202": { + "$ref": "#/responses/202" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } + } } }, "parameters": { @@ -183,7 +280,10 @@ "description": "OK" }, "202": { - "description": "Accepted" + "description": "Accepted", + "examples": { + "text/uri-list": "\"https://enm.in-silico.ch/task/\"" + } }, "400": { "description": "Bad Request" |