package com.utopiaindustries.qualitychecker.apiservice; import com.utopiaindustries.qualitychecker.models.EmployeePhoto; import com.utopiaindustries.qualitychecker.models.InspectionCheckPoint; import com.utopiaindustries.qualitychecker.models.InspectionCheckpointSku; import com.utopiaindustries.qualitychecker.models.InspectionDefect; import com.utopiaindustries.qualitychecker.models.InspectionDimension; import com.utopiaindustries.qualitychecker.models.InspectionLabelResponse; import com.utopiaindustries.qualitychecker.models.InspectionReport; import com.utopiaindustries.qualitychecker.models.InspectionReportItem; import com.utopiaindustries.qualitychecker.models.ItemUnit; import com.utopiaindustries.qualitychecker.models.Product; import com.utopiaindustries.qualitychecker.models.VoiceOfCustomer; import java.util.List; import java.util.Map; import retrofit2.Call; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Path; import retrofit2.http.Query; public interface ApiService { @GET("rest/uic/inspection-report") Call> fetchAllReports( @Query("username") String username ); @GET("rest/uic/inspection-report/{id}") Call fetchReport( @Path("id") long id ); @POST("rest/authentication/authenticate-user") Call isUserAuthenticated( @Query("username") String username, @Query("password") String password, @Query("roles") String[] roles ); @POST("rest/uic/inspection-report") Call> saveInspectionReport( @Body InspectionReport inspectionReport ); @GET("rest/uic/cosmos-products/find-by-sku") Call> fetchProductBySku( @Query("sku") String sku ); @GET("rest/uic/inspection-report/checkpoints") Call> fetchCheckPoints(); @GET( "rest/uic/inspection-report/defects" ) Call> fetchDefects(); // @GET( "rest/uic/inspection-report/dimensions" ) // Call> fetchDimensions( // @Query("sku") String sku // ); @GET( "rest/uic/inspection-report/dimensions" ) Call> fetchDimensions(); @GET( "rest/hrms/employees/attendance") Call fetchEmployeePhoto( @Query("username") String username ); @GET("rest/cosmos/amazon-voc") Call> fetchVocs( @Query("asin") String asin ); @GET( "rest/uic/cosmos-products/find-by-fnsku") Call fetchByFnsku( @Query("fnsku") String fnsku ); @GET( "rest/uic/inspection-report/inspection-items-logs" ) Call> fetchItemsLogs( @Query("sku") String sku ); @GET( "rest/uic/items/units" ) Call> fetchItemUnits(); @GET( "rest/uic/cosmos-products/" ) Call> fetchAllProducts( @Query("is-active") boolean isActive ); @GET( "rest/uic/inspection-report/inspection-sku-checkpoints" ) Call> fetchSkuCheckpoints( ); @GET("rest/uic/inspection-report/get-inspection-label") Call fetchAllInspectionLabels(); }