NeotomaDB / api_nodetest

node.js and express implementation for the Neotoma API
MIT License
2 stars 0 forks source link

swagger documentation wasn't resolving #39

Closed SimonGoring closed 7 years ago

SimonGoring commented 7 years ago

Going to the landing page for api-dev remotely was returning an error because it couldn't find the swagger.json file. @stryker-m

SimonGoring commented 7 years ago

I fixed this by editing node/public/api-docs/index.html and changing the reference to the remote host.

SimonGoring commented 7 years ago

For future reference, the line to modify was here: https://github.com/NeotomaDB/api_nodetest/blob/dev/public/api-docs/index.html#L76

stryker-m commented 7 years ago

Good find. Odd we need to edit the index.html. Seems the SwaggerUIBundle should provide a means to pass that from the config object.

SimonGoring commented 7 years ago

My guess is that there is a more complete fix, and that this was just lazy :)