diff options
-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) |