package com.isidroid.spot.data.source.remote

import com.isidroid.spot.data.source.remote.request.FindSpotRequest
import com.isidroid.spot.data.source.remote.response.SpotResponse
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

internal interface ApiSpot {
    @POST("api/spot/locate")
    fun locate(@Body request: FindSpotRequest): Call<List<SpotResponse>>

    @GET("api/spot/find/{code}")
    fun find(@Path("code") code: String): Call<SpotResponse>
}