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

Jsonbatch demo site and conditionals #2

Closed
twoxfh opened this issue Jun 26, 2020 · 4 comments
Closed

Jsonbatch demo site and conditionals #2

twoxfh opened this issue Jun 26, 2020 · 4 comments

Comments

@twoxfh
Copy link

twoxfh commented Jun 26, 2020

Are you planning to share the Jsonbatch demo site on heroku as well? I'm also trying to figure out if and how this can handle conditionals based on the responses. Interesting project.

@rey5137
Copy link
Owner

rey5137 commented Jun 26, 2020

I'm working on it. And JsonBatch can handle conditionals based on the responses as well. It will choose a request template or response template based on the predicate field.

@twoxfh
Copy link
Author

twoxfh commented Jun 26, 2020

Thanks for the quick response and the new UI your working is much improved 👍. I can create another issue but was thinking about how authentication of endpoints will work. Are there future plans for authentication? ideally per endpoint? Currently I have basic authentication with an interceptor for okhttp but that's likely not where this library is going.

@rey5137
Copy link
Owner

rey5137 commented Jun 27, 2020

Authentication is not in scope of this lib. When you execute a batch template, you can pass along the original request data (headers, body, ...) and access it later to build actual request. Or you can create a custom RequestDispatcher with OkHttp and your own interceptor.

@twoxfh
Copy link
Author

twoxfh commented Jun 27, 2020

Thanks for the response. Great stuff.

@twoxfh twoxfh closed this as completed Jun 27, 2020
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

2 participants