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

Add new package finch-generic #528

Closed
vkostyukov opened this issue Feb 17, 2016 · 1 comment
Closed

Add new package finch-generic #528

vkostyukov opened this issue Feb 17, 2016 · 1 comment
Labels
Milestone

Comments

@vkostyukov
Copy link
Collaborator

I think it makes sense to provide finch-generic covering generic derivations on endpoints in Finch. As for today we can build endpoints from query string params (we used to build request readers in the same way):

val e = Endpoint.derive[User].fromParams

I think I'm in favor of Circe-style API for this:

import io.finch.generic._

val e: Endpoint[User] = deriveFromParams[User] // or simiar

Would be also nice to support derivation from path segments.

@teodimoff
Copy link

+1

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

No branches or pull requests

2 participants