package com.example.elva.data.remote

import com.example.elva.data.remote.model.NutritionEntryDto
import com.example.elva.data.remote.model.NutritionEntryRequest
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST

interface NutritionApi {
    @POST("/api/v1/nutrition/entries")
    suspend fun addEntry(
        @Header("Authorization") token: String,
        @Body request: NutritionEntryRequest
    ): NutritionEntryDto

    @GET("/api/v1/nutrition/entries")
    suspend fun getEntries(
        @Header("Authorization") token: String
    ): List<NutritionEntryDto>
}

