Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 17, 2020 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordcodes/2e89a5ef80d047f4d3e1abfa4eeae14d to your computer and use it in GitHub Desktop.
Save lordcodes/2e89a5ef80d047f4d3e1abfa4eeae14d to your computer and use it in GitHub Desktop.
Code for the article: "Authorization and retrying of web requests for OkHttp and Retrofit"
interface CreateAccountRemoteApi {
@POST("user/identity")
fun createAccount(
@Body request: CreateAccountRemoteDto,
@Tag authorization: AuthorizationType = AuthorizationType.CLIENT_CREDENTIALS
): Single<AccountCreatedRemoteDto>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment