Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class Pet(species: String, url: String)
- import tapir._
- import io.circe.generic.auto._
- import tapir.json.circe._
- val petEndpoint: Endpoint[Int, String, Pet, Nothing] =
- endpoint
- .get
- .in("pet" / path[Int]("petId"))
- .errorOut(stringBody)
- .out(jsonBody[Pet])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement