package com.example.elva.data.remote

import com.example.elva.data.remote.model.AlertDto
import com.example.elva.data.remote.model.CreateAlertRequest
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.POST

interface EmergencyApi {
    @POST("/api/v1/alert")
    suspend fun createAlert(
        @Header("Authorization") token: String,
        @Body request: CreateAlertRequest
    ): AlertDto

    @GET("/api/v1/alerts/my")
    suspend fun getMyAlerts(
        @Header("Authorization") token: String
    ): List<AlertDto>

    @GET("/api/v1/alerts/responses")
    suspend fun getResponses(
        @Header("Authorization") token: String
    ): List<AlertDto>
}

