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

Add swagger #2

Merged
merged 10 commits into from
Sep 30, 2017
Merged

Add swagger #2

merged 10 commits into from
Sep 30, 2017

Conversation

aabrook
Copy link
Owner

@aabrook aabrook commented Sep 25, 2017

Medium article Part 2 discusses the swagger specification and phoenix swagger. This PR adds swagger, swagger-ui and the swagger validation to the project to simplify documenting the API and testing it.

|> Map.get(:resp_body)
|> Poison.decode!
|> validate_resp_schema(schema, "Trackers")
|> json_response(200)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A prelude for later

@aabrook aabrook merged commit fdd89c0 into master Sep 30, 2017
@aabrook aabrook deleted the topic/add-swagger branch September 30, 2017 10:32
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

Successfully merging this pull request may close these issues.

None yet

1 participant