package com.isidroid.job_sender.data.source.remote.api

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.PATCH
import retrofit2.http.Path

interface ApiCommand {
    @FormUrlEncoded
    @PATCH("api/job/{jobId}")
    fun complete(
        @Path("jobId") jobId: String,
        @Header("X-Access-Token") token: String,
        @Field("status") status: String = "Ready"
    ): Call<ResponseBody>
}