api4s icon indicating copy to clipboard operation
api4s copied to clipboard

Feasibility of targeting finch with this codebase?

Open hderms opened this issue 6 years ago • 1 comments

Curious if you've given thought to what would be required to make this work with finch as well as https

hderms avatar Sep 04 '19 00:09 hderms

It's definitely feasible.

Some thoughts off the top of my head:

  1. Code that generates JSON models can be reused as is
  2. 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 with Endpoint.coproduct and then compose such groups with Endpoint.:+:
  3. Handling request parameters would be much simpler than in http4s. Especially multipart!

IndiscriminateCoding avatar Sep 04 '19 10:09 IndiscriminateCoding