Skip to content

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