Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You should have a look at Tapir or Endpoint4s. I know it's beyond the scope of your question, but I think it does what you want, the right way. You can still use µPickle, sttp, but you'll need to pick another framework for the backend. Akka-http is probably the most straightforward if you want plain Scala Futures.
I too recommend checking out Tapir to separate API definition from implementation. I am currently exploring Tapir specifically for consumer contract based testing of APIs. You can check out a Tapir based Work-In-Progress (WIP) project at https://github.com/esumitra/lesson-service
Related posts
- Experienced dev new to Scala looking for a quick answer to get me on the right track - Advice on *standard* Scala framework stack to quickly set up a web-app backend ;
- tAPIr 1.0 release [INFOGRAPHIC]
- Scala vs Kotlin for REST API
- Programming language comparison by reimplementing the same transit data app
- Resources for learning about http4s and Typelevel ecosystem?