|
| 1 | +package com.example.techjini.myappportfolio.NetworkLayer; |
| 2 | + |
| 3 | +import java.util.HashMap; |
| 4 | +import java.util.Map; |
| 5 | + |
| 6 | +import retrofit.Call; |
| 7 | +import retrofit.http.Body; |
| 8 | +import retrofit.http.DELETE; |
| 9 | +import retrofit.http.Field; |
| 10 | +import retrofit.http.FieldMap; |
| 11 | +import retrofit.http.FormUrlEncoded; |
| 12 | +import retrofit.http.GET; |
| 13 | +import retrofit.http.Header; |
| 14 | +import retrofit.http.Headers; |
| 15 | +import retrofit.http.Multipart; |
| 16 | +import retrofit.http.POST; |
| 17 | +import retrofit.http.PUT; |
| 18 | +import retrofit.http.Part; |
| 19 | +import retrofit.http.Path; |
| 20 | +import retrofit.http.Query; |
| 21 | + |
| 22 | +/** |
| 23 | + * Created by Shakeeb on 1/11/2016 |
| 24 | + */ |
| 25 | +public interface ApiService { |
| 26 | + String baseURL="http://image.tmdb.org/t/p/w185"; |
| 27 | + |
| 28 | + //String baseURL="http://52.25.62.3/api/rest/techjini/"; |
| 29 | + //http://52.25.62.3/api/rest/techjini/products/list/zipcode/560010/tokenid/9dc7777af14d3a886132fc1fda72b22a |
| 30 | +// String url = "api/rest/techjini/products/list/zipcode/560010"; |
| 31 | + //api/rest/techjini/v1/catalogs/ |
| 32 | +/* String url = "api/rest/techjini/v1/catalogs/dc_id//pincode//prefer_teaser_menu//device_resolution/mdpi"; |
| 33 | + //String url = "api/rest/techjini/products/list/zipcode/560010/tokenid/9dc7777af14d3a886132fc1fda72b22a"; |
| 34 | +
|
| 35 | + String createOrAddtoCartUrl = "api/rest/techjini/checkout/cart/create"; |
| 36 | +
|
| 37 | + String checkProductAvailableAPI = "api/rest/techjini/inventory/list/zipcode/560010"; |
| 38 | +
|
| 39 | + String signUpUrl = "api/rest/techjini/customer/create/"; |
| 40 | +
|
| 41 | + //String loginAPIUrl = "api/rest/techjini/customer/login/email/customer@example.com/password/password/websiteid/1"; |
| 42 | + String loginAPIUrl = "api/rest/techjini/v1/login/"; |
| 43 | +
|
| 44 | +
|
| 45 | + final String OrderHistoryUrl = "api/rest/techjini/v1/customer/orderhistory"; |
| 46 | +
|
| 47 | + final String GetZipCodeUrl = "api/rest/techjini/v1/postalcodes/page_index/"; |
| 48 | + final String GetCatLog = "api/rest/techjini/v1/catalogs/"; |
| 49 | + final String VERIFY_OTP = "api/rest/techjini/v1/verifyotp/"; |
| 50 | + final String RESEND_OTP = "api/rest/techjini/v1/resendotp/"; |
| 51 | + final String addReviewURL = "api/rest/techjini/v1/product/review/add"; |
| 52 | + final String ForgotPasswordURL="api/rest/techjini/v1/forgotpassword/"; |
| 53 | + final String UpdateProfileURL="api/rest/techjini/v1/customer/update/"; |
| 54 | + final String ChangePasswordURL="api/rest/techjini/v1/customer/password/"; |
| 55 | +
|
| 56 | + final String addAddressAPIURL = "api/rest/techjini/v1/customer/address/"; |
| 57 | +
|
| 58 | + final String updateAddressAPIURL = "api/rest/techjini/v1/customer/address/update"; |
| 59 | +
|
| 60 | + @GET("products") |
| 61 | + @Headers({"Content-Type: application/json", "Accept: application/json"}) |
| 62 | + Call<Map<String, Map<String, String>>> getNewsList(); |
| 63 | + //.baseUrl("http://52.25.62.3/api/rest/techjini/products/list/zipcode/560010") |
| 64 | +
|
| 65 | + @GET(url) |
| 66 | + @Headers({"Content-Type: application/json", "Accept: application/json"}) |
| 67 | + Call<CatalogModel> getCatalog(@Header("fltoken") String fltoken, @Header("guid") String guid);*/ |
| 68 | + |
| 69 | +} |
0 commit comments