Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface RestServiceInterface {
- @Headers("Content-Type: application/x-www-form-urlencoded")
- @FormUrlEncoded
- @POST("users/authenticate")
- Call<LoginUser> userLogin(@Field("email") String email, @Field("password") String password);
- @Headers("Content-Type: application/x-www-form-urlencoded")
- @FormUrlEncoded
- @POST("users/register")
- Call<RegisterUser> userRegister(@Field("name") String name, @Field("email") String email, @Field("password") String password);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement