Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GET method in 'swagger_handler' in order to retrieve the JSON specification (swagger.json) #3

Closed
cabol opened this issue Jul 22, 2015 · 0 comments

Comments

@cabol
Copy link
Contributor

cabol commented Jul 22, 2015

The idea here is implement a Cowboy swagger handler to retrieve the swagger.json. In this case (initial version) the JSON will be generated during each request (that could be improved later). So the handle function should be able to:

  • Call trails:all/0 to get defined trails
  • With these trails, call swagger_json:from_trails(Trails) to generate the JSON and then return it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant