diff --git a/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/GrowthRecipeService.kt b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/GrowthRecipeService.kt new file mode 100644 index 0000000..77e0619 --- /dev/null +++ b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/GrowthRecipeService.kt @@ -0,0 +1,19 @@ +package com.syaroful.agrilinkvocpro.growth_recipe_feature.data.network + +import com.syaroful.agrilinkvocpro.growth_recipe_feature.data.model.NpkGraphicDayResponse +import retrofit2.Response +import retrofit2.http.GET +import retrofit2.http.Header +import retrofit2.http.Query + +interface GrowthRecipeService { + + @GET("api/sensor-readings/search") + suspend fun getNpkDataSensorDaily( + @Header("Authorization") authHeader: String, + @Query("range[start]") startDate: String, + @Query("range[end]") endDate: String, + @Query("range[time_range]") timeRange: String = "DAILY", + @Query("sensor") sensor: String + ): Response +} \ No newline at end of file