Last active
May 7, 2019 19:37
-
-
Save adamw/bec8b28d2befa6d2c16162f966e3c765 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 getBooks: Endpoint[BooksQuery, (StatusCode, ErrorInfo), List[Book], Nothing] = | |
baseEndpoint | |
.get | |
.in("books") | |
.in(booksQueryInput) | |
.out(jsonBody[List[Book]].example(List(Database.books.head))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment