Last active
May 7, 2019 19:37
-
-
Save adamw/b99d38e028c1580b0309d8c6d6d4e428 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 addBook: Endpoint[(AuthToken, NewBook), (StatusCode, ErrorInfo), Unit, Nothing] = | |
baseEndpoint | |
.post | |
.in(auth.bearer) | |
.in("books") | |
.in(multipartBody[NewBook]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment