Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val e: 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