Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created August 29, 2019 09:00
Show Gist options
  • Save ntakouris/45082482cf54f2fd91da33b2b33adf70 to your computer and use it in GitHub Desktop.
Save ntakouris/45082482cf54f2fd91da33b2b33adf70 to your computer and use it in GitHub Desktop.
public interface IIdentityApi
{
[Post("/api/v1/identity/register")]
Task<ApiResponse<AuthSuccessResponse>> RegisterAsync([Body] UserRegistrationRequest registrationRequest);
[Post("/api/v1/identity/login")]
Task<ApiResponse<AuthSuccessResponse>> LoginAsync([Body] UserLoginRequest loginRequest);
[Post("/api/v1/identity/refersh")]
Task<ApiResponse<AuthSuccessResponse>> RefreshAsync([Body] RefreshTokenRequest refreshRequest);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment