hasancse1991

Untitled

Sep 23rd, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 7.55 KB | None | 0 0
  1. public interface ApiService {
  2.  
  3.     @GET("restapis/category/list")
  4.     Call<CategoryResponse> getCategories();
  5.  
  6.     @POST("restapis/category/categoryproducts/{category_id}/{page_number}")
  7.     Call<ProductListResponse> getProductList(@Path("category_id") String id, @Path("page_number") String page_number, @Body ProductListRequest productListRequest);
  8.  
  9.     @GET("restapis/wishlist/getwishlistids/{user_id}")
  10.     Call<WishListIdResponse> getUserWishListIds(@Path("user_id") int user_id);
  11.  
  12.     @POST("restapis/product/search/{page_number}")
  13.     Call<ProductListResponse> getProductListBySearch(@Path("page_number") String page_number, @Body SearchProductRequest searchProductRequest);
  14.  
  15.     @GET("restapis/category/getfilterableattributes/{category_id}")
  16.     Call<FilterResponse> getfilterItemList(@Path("category_id") String category_id);
  17.  
  18.     @GET("restapis/product/details/{id}")
  19.     Call<ProductDetailResponse> getProductDetail(@Path("id") String id);
  20.  
  21.     @GET("restapis/review/getproductreview/{id}")
  22.     Call<ProductReviewResponse> getAllReview(@Path("id") String id);
  23.  
  24.     @GET("restapis/home/index/{id}")
  25.     Call<HomePageResponse> getHomePageData(@Path("id") String id);
  26.  
  27.     @POST("restapis/register")
  28.     Call<RegistrationResponse> registerUser(@Body RegistrationRequest registrationRequest);
  29.  
  30.     @POST("restapis/login")
  31.     Call<LoginResponse> login(@Body LoginRequest loginRequest);
  32.  
  33.     @POST("customer/changePassword")
  34.     Call<PasswordChangeResponse> changePassword(@Body PasswordChangeRequest passwordChangeRequest);
  35.  
  36.     @POST("restapis/review/addProductReview")
  37.     Call<ProductFeedbackResponse> saveReview(@Body ProductFeedbackRequest productFeedbackRequest);
  38.  
  39.     @GET("restapis/cart/add/{customerId}")
  40.     Call<AddToCartResponse> addToCart(@Path("customerId") String customerId, @QueryMap Map<String, String> attribute);
  41.  
  42.     @GET("restapis/cart/checkquantity/{userID}")
  43.     Call<CartAvailabilityResponse> checkCartAvailability(@Path("userID") String userId);
  44.  
  45.     @POST("/restapis/cart/bulkadd/{customerId}")
  46.     Call<BulkCartAddResponse> addToCartBulkItem(@Path("customerId") String customerId, @Body GuestCart guestCart, @Query("mobile") String value);
  47.  
  48.     @GET("restapis/cart/add/{customerId}")
  49.     Call<BuyNowResponse> addToCartForBuyNow(@Path("customerId") String customerId, @QueryMap Map<String, String> attribute);
  50.  
  51.     @GET("api/rest/cart/items/{customerId}")
  52.     Call<CartItemResponse> getCartInfo(@Path("customerId") String customerId, @QueryMap Map<String, String> cartInfoAttribute);
  53.  
  54.     @GET("restapis/cart/update/{customerId}")
  55.     Call<UpdateCartResponse> updateCart(@Path("customerId") String customerId, @QueryMap Map<String, String> updateCartInfo);
  56.  
  57.     @GET("api/rest/removeitem/{entity_id}/{customerId}")
  58.     Call<DeleteCartItemResponse> removeItemFromCart(@Path("entity_id") String entity_id, @Path("customerId") String customerId, @Query("mobile") String value);
  59.  
  60.     @GET("restapis/utils/getstatebycountry")
  61.     Call<StateByCountryResponse> getStateByCountry(@QueryMap Map<String, String> countryInfo);
  62.  
  63.     @GET("restapis/utils/citylist")
  64.     Call<CityResponse> getCity(@QueryMap Map<String, String> stateInfo);
  65.  
  66.     @GET
  67.     Call<StaticPageResponse> getStaticPage(@Url String url);
  68.  
  69.     @POST("restapis/wishlist/additem")
  70.     Call<WishListResponse> addToWishList(@Body WishListRequest request);
  71.  
  72.     @POST("restapis/wishlist/removewishList")
  73.     Call<WishListResponse> removeFromWishList(@Body WishListRequest request);
  74.  
  75.     @GET("restapis/wishlist/userwishlist/{customerId}")
  76.     Call<WishListProductResponse> getWishListData(@Path("customerId") String customerId);
  77.  
  78.     @GET("restapis/wishlist/clearwishlist/{customerId}")
  79.     Call<WishListResponse> clearWishList(@Path("customerId") String customerId);
  80.  
  81.     @GET("restapis/cart/applyCoupon/{customerId}")
  82.     Call<CouponResponse> applyCoupon(@Path("customerId") String customerId, @QueryMap Map<String, String> couponInfo);
  83.  
  84.     @GET("restapis/checkout/saveaddress/{customerId}")
  85.     Call<AddressSaveResponse> saveAddress(@Path("customerId") String customerId, @QueryMap Map<String, String> addressInfo);
  86.  
  87.     @POST("restapis/utils/updateUsersAdress/{addressId}")
  88.     Call<AddressSaveResponse> updateAddress(@Path("addressId") String addressId, @Body Address addressInfo);
  89.  
  90.     @GET("restapis/utils/termandcondition")
  91.     Call<TermsAndConditionResponse> getTermsAndCondition();
  92.  
  93.     @GET("restapis/login/sociallogin")
  94.     Call<LoginResponse> loginWithFb(@QueryMap Map<String, String> addressInfo);
  95.  
  96.     @GET("api/rest/sociallogin/google")
  97.     Call<LoginResponse> loginWithGoogle(@QueryMap Map<String, String> loginInfo);
  98.  
  99.     @GET("restapis/checkout/addresslist/{customerId}")
  100.     Call<AddressListResponse> getAddress(@Path("customerId") String customerId);
  101.  
  102.     @GET("restapis/checkout/shippingmethods/{customerId}")
  103.     Call<ShippingMethodResponse> getShippingMethod(@Path("customerId") String customerId, @QueryMap Map<String, String> shippingMethodInfo);
  104.  
  105.     @GET("restapis/checkout/paymentmethods/{customerId}")
  106.     Call<PaymentMethodResponse> getPaymentMethodList(@Path("customerId") String customerId, @QueryMap Map<String, String> paymentInfo);
  107.  
  108.     @GET("restapis/product/emilist/{customerId}")
  109.     Call<EmiResponse> getEmiList(@Path("customerId") String customerId);
  110.  
  111.     @GET("restapis/checkout/cardlist/{emi_length}")
  112.     Call<PaymentCardListResponse> getCardList(@Path("emi_length") int emiLength);
  113.  
  114.     @GET("restapis/checkout/submit/{customerId}")
  115.     Call<OrderResponse> placeOrder(@Path("customerId") String customerId, @QueryMap Map<String, String> orderInfo);
  116.  
  117.     @GET("api/rest/orderslist/{customerId}")
  118.     Call<OrderListResponse> getAllOrder(@Path("customerId") String customerId);
  119.  
  120.     @GET("api/rest/orderdetail/{orderEntityId}")
  121.     Call<OrderDetailResponse> getOrderDetails(@Path("orderEntityId") String orderEntityId);
  122.  
  123.     @POST("restapis/notification/updatetoken")
  124.     Call<FCMTokenResponseLogin> updateFCMTokenForLogin(@Body FCMTokenRequest fcmTokenRequest);
  125.  
  126.     @POST("restapis/notification/updatetoken")
  127.     Call<FCMTokenResponseRegister> updateFCMTokenForRegister(@Body FCMTokenRequest fcmTokenRequest);
  128.  
  129.     @POST("restapis/notification/updatetoken")
  130.     Call<FCMTokenResponse> updateFCMToken(@Body FCMTokenRequest fcmTokenRequest);
  131.  
  132.     @POST("restapis/utils/subscription")
  133.     Call<SubscriptionAlertResponse> setProductSubscriptionALert(@Body ProductSubscriptionRequest productSubscriptionRequest);
  134.  
  135.     @POST("restapis/login/logout")
  136.     Call<LogOutResponse> logOut(@Body LogOutRequest logOutRequest);
  137.  
  138.     @GET("restapis/Citybank")
  139.     Call<RedirectUrlResponse> getRedirectUrl(@QueryMap Map<String, String> orderInfo);
  140.  
  141.     @POST("restapis/login/updateprofile")
  142.     Call<ProfileUpdateResponse> updateProfile(@Body ProfileUpdateRequest profileUpdateRequest);
  143.  
  144.     @GET
  145.     Call<StaticDataResponse> getStaticData(@Url String url);
  146.  
  147.     @POST("restapis/login/userdashboard")
  148.     Call<UserDashboardResponse> getUserDashboardData(@Body UserDashboardRequest userDashboardRequest);
  149.  
  150.     @GET("restapis/login/forgotpassword")
  151.     Call<ForgotPasswordResponse> forgotPasswordByEmail(@Query("email") String email);
  152.  
  153.     @GET("restapis/login/checkmobile")
  154.     Call<ForgotPasswordMobileResponse> forgotPasswordByMobile(@Query("mobile") String mobile);
  155.  
  156.     @GET("restapis/login/Otpverification")
  157.     Call<OtpVerificationResponse> verifyOtp(@Query("onetimepassword") String otp, @Query("mobile") String mobile);
  158.  
  159.     @POST("restapis/login/reset")
  160.     Call<PasswordResetOtpResponse> resetPasswordByOtp(@Body PasswordResetOtpRequest request);
  161. }
Advertisement
Add Comment
Please, Sign In to add comment