Closed nunogoncalves closed 8 years ago
This PR adds documentation to the api. There's something I think we should do:
In the config/initializers/swagger_docs.rb file there's a line that is hard coded to the base path.
:base_path => "http://github-awards.com/",
I think it would be more prudent to have an env variable to set it. For example to distinguish dev envs and production.
Try this out on your local env too. The documentation page should be able to make proper calls. :)
Absolutely, i added an env var for the current HOST.
This PR adds documentation to the api. There's something I think we should do:
In the config/initializers/swagger_docs.rb file there's a line that is hard coded to the base path.
:base_path => "http://github-awards.com/",
I think it would be more prudent to have an env variable to set it. For example to distinguish dev envs and production.
Try this out on your local env too. The documentation page should be able to make proper calls. :)