login and register
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package ch.pizzalink.android.api;
|
||||
|
||||
import ch.pizzalink.android.model.responseModel.CategoryResponseModel;
|
||||
import ch.pizzalink.android.model.responseModel.LoginCustomerResponseModel;
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.Field;
|
||||
import retrofit2.http.FormUrlEncoded;
|
||||
@@ -17,6 +18,26 @@ public interface ApiInterface {
|
||||
@GET(ApiEndPoints.API_GET_ALL_CATEGORIES)
|
||||
Call<CategoryResponseModel> getAllCategories();
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST(ApiEndPoints.API_REGISTER)
|
||||
Call<LoginCustomerResponseModel> register(@Field("firstname") String firstname,
|
||||
@Field("lastname") String lastname,
|
||||
@Field("telephone") String telephone,
|
||||
@Field("email") String email,
|
||||
@Field("passsword") String passsword,
|
||||
@Field("passsword1") String passswordRetype,
|
||||
@Field("address_1") String addressLine1,
|
||||
@Field("address_2") String addressLine2,
|
||||
@Field("city") String passswocityrd,
|
||||
@Field("postcode") String postcode,
|
||||
@Field("country_id") String country_id,
|
||||
@Field("zone_id") String zone_id);
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST(ApiEndPoints.API_LOGIN)
|
||||
Call<LoginCustomerResponseModel> login(@Field("email") String email, @Field("password") String password);
|
||||
|
||||
|
||||
/*
|
||||
@GET(ApiEndPoints.API_GET_ALL_CATEGORIES)
|
||||
Call<CategoryListResponseModel> getAllCategories();
|
||||
|
||||
Reference in New Issue
Block a user