package ru.fincode.tsudesk.feature.schedule.data.remote.api

import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
import ru.fincode.tsudesk.feature.schedule.data.remote.ScheduleApiContract
import ru.fincode.tsudesk.feature.schedule.data.remote.dto.ScheduleDto

interface ScheduleApi {

    @GET(ScheduleApiContract.Path.GET_SCHEDULE_METHOD)
    suspend fun getSchedule(
        @Query(ScheduleApiContract.Query.FIELD_SEARCH) searchField: String,
        @Query(ScheduleApiContract.Query.VALUE_SEARCH) searchValue: String
    ): Response<ScheduleDto>
}