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

import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Header
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Path

interface ApiUpload {
    @POST("api/page/{jobId}")
    @Headers("Content-Type: application/octet-stream")
    fun upload(
        @Path("jobId") jobId: String,
        @Header("X-Access-Token") token: String,
        @Body body: RequestBody
    ): Call<ResponseBody>
}