package com.example.elva.data.remote

import com.example.elva.data.remote.model.CalendarEntryDto
import com.example.elva.data.remote.model.CreateCalendarEntryRequest
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST

interface CalendarApi {
    @GET("/api/v1/calendar/entries")
    suspend fun getEntries(@Header("Authorization") token: String): List<CalendarEntryDto>

    @POST("/api/v1/calendar/entries")
    suspend fun addEntry(
        @Header("Authorization") token: String,
        @Body request: CreateCalendarEntryRequest
    ): CalendarEntryDto
}

