Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface ApiService {
- @GET("restapis/category/list")
- Call<CategoryResponse> getCategories();
- @POST("restapis/category/categoryproducts/{category_id}/{page_number}")
- Call<ProductListResponse> getProductList(@Path("category_id") String id, @Path("page_number") String page_number, @Body ProductListRequest productListRequest);
- @GET("restapis/wishlist/getwishlistids/{user_id}")
- Call<WishListIdResponse> getUserWishListIds(@Path("user_id") int user_id);
- @POST("restapis/product/search/{page_number}")
- Call<ProductListResponse> getProductListBySearch(@Path("page_number") String page_number, @Body SearchProductRequest searchProductRequest);
- @GET("restapis/category/getfilterableattributes/{category_id}")
- Call<FilterResponse> getfilterItemList(@Path("category_id") String category_id);
- @GET("restapis/product/details/{id}")
- Call<ProductDetailResponse> getProductDetail(@Path("id") String id);
- @GET("restapis/review/getproductreview/{id}")
- Call<ProductReviewResponse> getAllReview(@Path("id") String id);
- @GET("restapis/home/index/{id}")
- Call<HomePageResponse> getHomePageData(@Path("id") String id);
- @POST("restapis/register")
- Call<RegistrationResponse> registerUser(@Body RegistrationRequest registrationRequest);
- @POST("restapis/login")
- Call<LoginResponse> login(@Body LoginRequest loginRequest);
- @POST("customer/changePassword")
- Call<PasswordChangeResponse> changePassword(@Body PasswordChangeRequest passwordChangeRequest);
- @POST("restapis/review/addProductReview")
- Call<ProductFeedbackResponse> saveReview(@Body ProductFeedbackRequest productFeedbackRequest);
- @GET("restapis/cart/add/{customerId}")
- Call<AddToCartResponse> addToCart(@Path("customerId") String customerId, @QueryMap Map<String, String> attribute);
- @GET("restapis/cart/checkquantity/{userID}")
- Call<CartAvailabilityResponse> checkCartAvailability(@Path("userID") String userId);
- @POST("/restapis/cart/bulkadd/{customerId}")
- Call<BulkCartAddResponse> addToCartBulkItem(@Path("customerId") String customerId, @Body GuestCart guestCart, @Query("mobile") String value);
- @GET("restapis/cart/add/{customerId}")
- Call<BuyNowResponse> addToCartForBuyNow(@Path("customerId") String customerId, @QueryMap Map<String, String> attribute);
- @GET("api/rest/cart/items/{customerId}")
- Call<CartItemResponse> getCartInfo(@Path("customerId") String customerId, @QueryMap Map<String, String> cartInfoAttribute);
- @GET("restapis/cart/update/{customerId}")
- Call<UpdateCartResponse> updateCart(@Path("customerId") String customerId, @QueryMap Map<String, String> updateCartInfo);
- @GET("api/rest/removeitem/{entity_id}/{customerId}")
- Call<DeleteCartItemResponse> removeItemFromCart(@Path("entity_id") String entity_id, @Path("customerId") String customerId, @Query("mobile") String value);
- @GET("restapis/utils/getstatebycountry")
- Call<StateByCountryResponse> getStateByCountry(@QueryMap Map<String, String> countryInfo);
- @GET("restapis/utils/citylist")
- Call<CityResponse> getCity(@QueryMap Map<String, String> stateInfo);
- @GET
- Call<StaticPageResponse> getStaticPage(@Url String url);
- @POST("restapis/wishlist/additem")
- Call<WishListResponse> addToWishList(@Body WishListRequest request);
- @POST("restapis/wishlist/removewishList")
- Call<WishListResponse> removeFromWishList(@Body WishListRequest request);
- @GET("restapis/wishlist/userwishlist/{customerId}")
- Call<WishListProductResponse> getWishListData(@Path("customerId") String customerId);
- @GET("restapis/wishlist/clearwishlist/{customerId}")
- Call<WishListResponse> clearWishList(@Path("customerId") String customerId);
- @GET("restapis/cart/applyCoupon/{customerId}")
- Call<CouponResponse> applyCoupon(@Path("customerId") String customerId, @QueryMap Map<String, String> couponInfo);
- @GET("restapis/checkout/saveaddress/{customerId}")
- Call<AddressSaveResponse> saveAddress(@Path("customerId") String customerId, @QueryMap Map<String, String> addressInfo);
- @POST("restapis/utils/updateUsersAdress/{addressId}")
- Call<AddressSaveResponse> updateAddress(@Path("addressId") String addressId, @Body Address addressInfo);
- @GET("restapis/utils/termandcondition")
- Call<TermsAndConditionResponse> getTermsAndCondition();
- @GET("restapis/login/sociallogin")
- Call<LoginResponse> loginWithFb(@QueryMap Map<String, String> addressInfo);
- @GET("api/rest/sociallogin/google")
- Call<LoginResponse> loginWithGoogle(@QueryMap Map<String, String> loginInfo);
- @GET("restapis/checkout/addresslist/{customerId}")
- Call<AddressListResponse> getAddress(@Path("customerId") String customerId);
- @GET("restapis/checkout/shippingmethods/{customerId}")
- Call<ShippingMethodResponse> getShippingMethod(@Path("customerId") String customerId, @QueryMap Map<String, String> shippingMethodInfo);
- @GET("restapis/checkout/paymentmethods/{customerId}")
- Call<PaymentMethodResponse> getPaymentMethodList(@Path("customerId") String customerId, @QueryMap Map<String, String> paymentInfo);
- @GET("restapis/product/emilist/{customerId}")
- Call<EmiResponse> getEmiList(@Path("customerId") String customerId);
- @GET("restapis/checkout/cardlist/{emi_length}")
- Call<PaymentCardListResponse> getCardList(@Path("emi_length") int emiLength);
- @GET("restapis/checkout/submit/{customerId}")
- Call<OrderResponse> placeOrder(@Path("customerId") String customerId, @QueryMap Map<String, String> orderInfo);
- @GET("api/rest/orderslist/{customerId}")
- Call<OrderListResponse> getAllOrder(@Path("customerId") String customerId);
- @GET("api/rest/orderdetail/{orderEntityId}")
- Call<OrderDetailResponse> getOrderDetails(@Path("orderEntityId") String orderEntityId);
- @POST("restapis/notification/updatetoken")
- Call<FCMTokenResponseLogin> updateFCMTokenForLogin(@Body FCMTokenRequest fcmTokenRequest);
- @POST("restapis/notification/updatetoken")
- Call<FCMTokenResponseRegister> updateFCMTokenForRegister(@Body FCMTokenRequest fcmTokenRequest);
- @POST("restapis/notification/updatetoken")
- Call<FCMTokenResponse> updateFCMToken(@Body FCMTokenRequest fcmTokenRequest);
- @POST("restapis/utils/subscription")
- Call<SubscriptionAlertResponse> setProductSubscriptionALert(@Body ProductSubscriptionRequest productSubscriptionRequest);
- @POST("restapis/login/logout")
- Call<LogOutResponse> logOut(@Body LogOutRequest logOutRequest);
- @GET("restapis/Citybank")
- Call<RedirectUrlResponse> getRedirectUrl(@QueryMap Map<String, String> orderInfo);
- @POST("restapis/login/updateprofile")
- Call<ProfileUpdateResponse> updateProfile(@Body ProfileUpdateRequest profileUpdateRequest);
- @GET
- Call<StaticDataResponse> getStaticData(@Url String url);
- @POST("restapis/login/userdashboard")
- Call<UserDashboardResponse> getUserDashboardData(@Body UserDashboardRequest userDashboardRequest);
- @GET("restapis/login/forgotpassword")
- Call<ForgotPasswordResponse> forgotPasswordByEmail(@Query("email") String email);
- @GET("restapis/login/checkmobile")
- Call<ForgotPasswordMobileResponse> forgotPasswordByMobile(@Query("mobile") String mobile);
- @GET("restapis/login/Otpverification")
- Call<OtpVerificationResponse> verifyOtp(@Query("onetimepassword") String otp, @Query("mobile") String mobile);
- @POST("restapis/login/reset")
- Call<PasswordResetOtpResponse> resetPasswordByOtp(@Body PasswordResetOtpRequest request);
- }
Advertisement
Add Comment
Please, Sign In to add comment