Skip to content

Instantly share code, notes, and snippets.

@adamw
Last active May 7, 2019 19:37
Show Gist options
  • Save adamw/b99d38e028c1580b0309d8c6d6d4e428 to your computer and use it in GitHub Desktop.
Save adamw/b99d38e028c1580b0309d8c6d6d4e428 to your computer and use it in GitHub Desktop.
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