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

Prepare fluent API for REST client #15

Open
romanstrobl opened this issue Dec 8, 2020 · 1 comment
Open

Prepare fluent API for REST client #15

romanstrobl opened this issue Dec 8, 2020 · 1 comment
Assignees

Comments

@romanstrobl
Copy link
Member

romanstrobl commented Dec 8, 2020

Currently there are many methods available for slightly different versions of HTTP method calls.

Let's prepare a fluent API, which will allow calling the client like this:
get(path).queryParam(q).headers(h).execute()
get(path).nonBlocking().execute(onSuccess, onFailure)
post(path).body(request).responseType(type).execute()

@romanstrobl
Copy link
Member Author

The current API is good enough for now. We can add the fluent / request builder interface in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant