package com.example.elva.data.remote

import com.example.elva.data.remote.model.ContactDto
import com.example.elva.data.remote.model.CreateContactRequest
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST

interface ContactsApi {
    @GET("/api/v1/users/me/emergency-contacts")
    suspend fun getContacts(
        @Header("Authorization") token: String
    ): List<ContactDto>

    @POST("/api/v1/users/me/emergency-contacts")
    suspend fun addContact(
        @Header("Authorization") token: String,
        @Body request: CreateContactRequest
    ): ContactDto
}

