com.cloudesire.platform.apiclient.api.PublicUserFileApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.FileDTO;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Streaming;
public interface PublicUserFileApi
{
@Multipart
@POST( "publicUserFile" )
Call create( @Part() MultipartBody.Part file );
@GET( "publicUserFile/{id}" )
Call get( @Path( "id" ) int id );
@GET( "publicUserFile/{id}/static" )
@Headers( "Accept: image/*" )
@Streaming
Call getFile( @Path( "id" ) Integer id );
@DELETE( "publicUserFile/{id}" )
Call delete( @Path( "id" ) int id );
}