Examples¶
The examples
sub-project contains a number of runnable tapir usage examples:
- Hello world server, using akka-http
- Hello world server, using http4s
- Separate error & success outputs, using akka-http
- Multiple endpoints, exposing OpenAPI/Swagger documentation, using akka-http
- Multiple endpoints, exposing OpenAPI/Swagger documentation, using http4s
- Multiple endpoints, with the description coupled with server logic, using akka-http
- Reporting errors in a custom format when a query/path/.. parameter cannot be decoded
- Using custom types in endpoint descriptions
- Multipart form upload, using akka-http
- Partial server logic (authentication), using akka-http
- Books example
- ZIO example, using http4s
- ZIO partial server logic example, using http4s
- Streaming body, using akka-http
- Streaming body, using http4s + fs2
Other examples¶
To see an example project using Tapir, check out this Todo-Backend using tapir and http4s.