api4s
api4s copied to clipboard
Feasibility of targeting finch with this codebase?
Curious if you've given thought to what would be required to make this work with finch as well as https
It's definitely feasible.
Some thoughts off the top of my head:
- Code that generates JSON models can be reused as is
- Most tricky part would be content-type handling. It's better to avoid large coproduct types, so one approach here is to group
Endpoints by content-type withEndpoint.coproductand then compose such groups withEndpoint.:+: - Handling request parameters would be much simpler than in http4s. Especially multipart!