summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2016-10-31 10:00:21 +0100
committerrautenberg <rautenberg@in-silico.ch>2016-10-31 10:00:21 +0100
commit8825d8398612608e89f5454822d08628e9d606d6 (patch)
treefc52ec1f8a0e4ff4fee19cf984539275b2f2e95f
parente3c7868e888c599bb4089abbcf7fcd602ba48974 (diff)
Version to 1.0.0, predict nanoparticle API
-rw-r--r--api/api.json59
1 files changed, 58 insertions, 1 deletions
diff --git a/api/api.json b/api/api.json
index 0fb0f8a..4c6bfa9 100644
--- a/api/api.json
+++ b/api/api.json
@@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"description": "REST API webservice for lazar and nano-lazar. \n*lazar* (lazy structure–activity relationships) is a modular framework for predictive toxicology. With activated Authentication & Authorization, subjectid authorization token are obligatory for designated services.\n",
- "version": "0.0.3",
+ "version": "1.0.0",
"title": "Lazar & Nano-Lazar REST Service",
"contact": {
"name": "in silico toxicology gmbh",
@@ -152,6 +152,63 @@
}
}
},
+ "/model/{id}/nanoparticle": {
+ "post": {
+ "tags": [
+ "model"
+ ],
+ "description": "Predict a nanoparticle",
+ "parameters": [
+ {
+ "name": "core",
+ "in": "formData",
+ "description": "core",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "coating",
+ "in": "formData",
+ "description": "coating",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "physchem",
+ "in": "formData",
+ "description": "physchem descriptors. key-value hash of physchem descriptors.",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "$ref": "#/parameters/id"
+ },
+ {
+ "$ref": "#/parameters/subjectid"
+ }
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/200"
+ },
+ "400": {
+ "$ref": "#/responses/400"
+ },
+ "401": {
+ "$ref": "#/responses/401"
+ },
+ "403": {
+ "$ref": "#/responses/403"
+ },
+ "404": {
+ "$ref": "#/responses/404"
+ }
+ }
+ }
+ },
"/report": {
"get": {
"tags": [