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

Question: Any thoughts on how to apply different handlers for each endpoint? #8

Open
seandavi opened this issue Mar 7, 2019 · 1 comment

Comments

@seandavi
Copy link
Contributor

seandavi commented Mar 7, 2019

I love the autogeneration aspects of rapiclient. I'd like to use them to dynamically build out the API but specify more than one type of handler. Is this a use case that you had in mind and, if so, what is the recommended approach? If not, would you be interested in discussing?

@bergant
Copy link
Owner

bergant commented Mar 7, 2019

I am not sure if I understand this correctly. Do we need to generate all combinations of operations by all defined response handlers? Or user could set the handler after the functions are generated?

Note that you can already define different handlers manually (but this gives you separate operations objects for each handler).

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