Swagger API documentation is not working
joephayes opened this issue · 0 comments
Describe the bug
Swagger documentation URL - http://localhost:9090/Ontology/OLGAsaas/1.0.0/1.0/ does not display API documentation, instead it display the string redirect:swagger-ui.html
To Reproduce
Steps to reproduce the behavior:
- Build and Run OLGA web service according to the instructions found in the Webservice User Guide
- Try to access the API documentation using the URL
http://localhost:9090/Ontology/OLGAsaas/1.0.0/1.0/
Instead of seeing API documentation I see a page with the text: redirect:swagger-ui.html
. If I go directly to http://localhost:9090/Ontology/OLGAsaas/1.0.0/1.0/swagger-ui.html
I get the documentation UI, but I get a dialog prompting me for the API's base URL.
Also note that the web service readme gives the wrong URL for the API documentation (http://localhost:9090/
instead of http://localhost:9090/Ontology/OLGAsaas/1.0.0/1.0/
)
Expected behavior
Browser should redirect to API documentation
Screenshots
Desktop (please complete the following information):
-
OS: MacOS Mojave 10.14.6
-
Browser Firefox
-
Version 71.0 (64 bit)
-
Browser Chrome
-
Version 79.0.3945.117 (Official Build) (64-bit)