Advertisement
vitareinforce

retrofit interface

May 14th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. public interface RestServiceInterface {
  2.  
  3.     @Headers("Content-Type: application/x-www-form-urlencoded")
  4.     @FormUrlEncoded
  5.     @POST("users/authenticate")
  6.     Call<LoginUser> userLogin(@Field("email") String email, @Field("password") String password);
  7.  
  8.     @Headers("Content-Type: application/x-www-form-urlencoded")
  9.     @FormUrlEncoded
  10.     @POST("users/register")
  11.     Call<RegisterUser> userRegister(@Field("name") String name, @Field("email") String email, @Field("password") String password);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement