summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-03 16:07:53 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-03 16:07:53 +0200
commit7a2d341e6c582727ad99d461e9c90e0818ff2a0c (patch)
tree974c2bc9c0b8d91c82b8aef5befdd6b9b5c43d69
parentc837701581261261193968e961064a0173f26d2c (diff)
add initial swagger api file
-rw-r--r--api/validation.json94
1 files changed, 94 insertions, 0 deletions
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