diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-18 16:49:23 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-18 16:49:23 +0200 |
commit | 8729c6ee446e4edb2efde14d2fe0249ab2a29879 (patch) | |
tree | 63de0f6bfc4b54baec113d20978a5aa44ccb6410 | |
parent | 45ddfb793631acb1ef4b10cbb8f6242e0d9dc1eb (diff) |
hotfix for wrong PATH_INFO in request env /algorithm/api/algorithm.json is /api/algorithm.json part 2
-rw-r--r-- | api/algorithm.json | 6 | ||||
-rw-r--r-- | application.rb | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/api/algorithm.json b/api/algorithm.json index 21d38b4..dcc581f 100644 --- a/api/algorithm.json +++ b/api/algorithm.json @@ -67,8 +67,7 @@ "/algorithm/lazar": { "get": { "tags": [ - "algorithm", - "lazar" + "algorithm" ], "description": "representation of lazar algorithm", "parameters": [ @@ -112,8 +111,7 @@ }, "post": { "tags": [ - "algorithm", - "lazar" + "algorithm" ], "description": "Create a lazar prediction model", "parameters": [ diff --git a/application.rb b/application.rb index f2f2fab..239a37d 100644 --- a/application.rb +++ b/application.rb @@ -41,7 +41,7 @@ module OpenTox end # generic route to swagger API file - hotfix because opentox-server route do not work - get "/algorithm/api/algorithm.json" do + get "/api/algorithm.json" do response['Content-Type'] = "application/json" api_file = File.join("api", "algorithm.json") bad_request_error "API Documentation in Swagger JSON is not implemented.", uri("/algorithm/api") unless File.exists?(api_file) |