package com.juihost.photoeditor.data import okhttp3.MultipartBody import okhttp3.RequestBody import retrofit2.Response import retrofit2.http.* interface PhotoEditorApi { @POST("auth/login") suspend fun login(@Body body:LoginRequest):Response @POST("auth/register") suspend fun register(@Body body:RegisterRequest):Response @GET("me") suspend fun me(@Header("Authorization") bearer:String):Response @Multipart @POST("jobs") suspend fun createJob(@Header("Authorization") bearer:String,@Part image:MultipartBody.Part,@Part("operation") operation:RequestBody):Response @GET("jobs/{id}") suspend fun job(@Header("Authorization") bearer:String,@Path("id") id:Long):Response }