From 8825d8398612608e89f5454822d08628e9d606d6 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Mon, 31 Oct 2016 10:00:21 +0100 Subject: Version to 1.0.0, predict nanoparticle API --- api/api.json | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) 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": [ -- cgit v1.2.3