Created
June 7, 2019 19:18
-
-
Save adamw/bb80b686fe5368f11afcad732474fc54 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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