openphacts / OPS_LinkedDataApi

A repository to host API configuration files, and code extensions
Other
9 stars 7 forks source link

Swagger file has hard-coded basePath #15

Closed stain closed 8 years ago

stain commented 8 years ago

http://heater.cs.man.ac.uk:3002/api-config-files/swagger.json (from the docker image)

claims

{
    "basePath": "https://beta.openphacts.org/1.5",

but the basePath in this instance should be http://heater.cs.man.ac.uk:3002/

Is there a way to access the swagger file dynamically with the correct basePath, for usage with OPS-KNIME?

stain commented 8 years ago

Would it make sense for the Docker image to simply run generate_swagger.sh with a search-replace?

stain commented 8 years ago

Answer: No - the result of generate_swagger.sh differs a lot from the current swagger.json

stain commented 8 years ago

Added as /swagger (and /swagger.json if you like).