From 7a2d341e6c582727ad99d461e9c90e0818ff2a0c Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 3 Jun 2015 16:07:53 +0200 Subject: add initial swagger api file --- api/validation.json | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 api/validation.json diff --git a/api/validation.json b/api/validation.json new file mode 100644 index 0000000..d925368 --- /dev/null +++ b/api/validation.json @@ -0,0 +1,94 @@ +{ + "swagger": "2.0", + "info": { + "description": "An OpenTox REST Webservice for validation and reporting\n", + "version": "1.0.0", + "title": "OpenTox Validation", + "contact": { + "name": "Martin Guetlein, Christoph Helma" + }, + "license": { + "name": "GNU GENERAL PUBLIC LICENSE", + "url": "https://github.com/opentox/validation/blob/master/LICENSE" + } + }, + "host": "enm.in-silico.ch", + "basePath": "/", + "schemes": [ + "https" + ], + "paths": { + "/validation/test_set_validation": { + "post": { + "consumes": [ + "application/x-www-form-urlencoded" + ], + "tags": [ + "test_set_validation" + ], + "summary": "Validates a model on a test dataset", + "description": "", + "produces": [ + "application/rdf+xml", + "application/x-yaml", + "text/html", + "text/uri-list" + ], + "parameters": [ + { + "name": "subjectid", + "in": "header", + "description": "authorization token", + "required": true, + "type": "string" + }, + { + "name": "model_uri", + "description": "model URI", + "type": "string", + "in": "formData", + "required": true + }, + { + "name": "test_dataset_uri", + "description": "test dataset URI", + "type": "string", + "in": "formData", + "required": true + }, + { + "name": "test_target_dataset_uri", + "description": "test target dataset URI (default=test_dataset_uri)", + "type": "string", + "in": "formData", + "required": false + }, + { + "name": "prediction_feature", + "description": "prediction feature URI (default= dependent variable of model)", + "type": "string", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "OK - Task URI" + }, + "202": { + "description": "Accepted - Task URI" + }, + "400": { + "description": "Bad Request" + }, + "404": { + "description": "Not Authorized" + }, + "500": { + "description": "Server Error" + } + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3