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<NpkGraphicDayResponse>
}