package w.soulofpluto.posstock;

import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by Ramesh on 05/09/20.
 */

 public interface ApiService{
       //String BASE_URL = "https://aeebe1.emporter.eu/pos_actions/";
       //String Token    = "41f34d7009db337f6213be52f7151108";
       //String StoreId  = "980";
       /*@Headers({"Pos-Access-Token:" + Token,"Pos-User-Access-Store-Id:"+StoreId,
                    "Accept: application/json","Content-Type:multipart/form-data"})*/
       /*@Multipart
        @POST("uploadBarcodeImages")
        Call<ResponseBody> uploadMultiple(@Part("Pos-Access-Token") RequestBody token,
                                          @Part("Pos-User-Access-Store-Id") RequestBody storeId,
                                          @Part("barcode") RequestBody barcode,
                                          @Part List<MultipartBody.Part> files);*/

        @Headers({"Content-type: application/json"})
        @POST("/login/doLogin")
        Call<Response> login(@Body RequestBody body);

        @GET("/login/getStoresMappedToUser/{id}")
        Call<Response> getStoreId(@Path("id") String id);
 }
