Skip to content

Instantly share code, notes, and snippets.

@adamw
Created June 7, 2019 19:18
Show Gist options
  • Save adamw/bb80b686fe5368f11afcad732474fc54 to your computer and use it in GitHub Desktop.
Save adamw/bb80b686fe5368f11afcad732474fc54 to your computer and use it in GitHub Desktop.
val e: Endpoint[Int, String, Pet, Nothing] = endpoint
.get
.in("pet" / path[Int]("petId"))
.errorOut(stringBody)
.out(jsonBody[Pet])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment