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

ExampleRequestsTests #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ralfebert
Copy link
Contributor

ExampleRequestsTests makes actual requests to httpbin.org/jsonplaceholder.typicode.com to see common cases how the Endpoint API might be used in one place

Includes examples for GET/POST (json body)/POST (form-encoded) with json results and an example how to setup a typical REST/JSON API using endpoints

This test requires to be online and is tightly coupled to these particular APIs but imo it is worth it to see typical examples and have runnable examples for the library.

ExampleRequestsTests makes actual requests to httpbin.org/jsonplaceholder.typicode.com to see common cases how the Endpoint API might be used in one place
Includes examples for GET/POST (json body)/POST (form-encoded) with json results and an example how to setup a typical REST/JSON API using endpoints
This test requires to be online and is tightly coupled to these particular APIs but imo it is worth it to see typical examples and have runnable examples for the library.
@chriseidhof
Copy link
Collaborator

I wonder if these would make more sense in an Examples project (or similar). I do like having runnable examples in the repository, I don't really like having to be online for these tests. Will think a bit more about this =)

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.

2 participants