Package com.ardoq.service
Interface AttachmentService
public interface AttachmentService
-
Method Summary
Modifier and Type Method Description retrofit.client.ResponsedeleteAttachment(String resourceType, String resourceId, String filename)voiddeleteAttachment(String resourceType, String resourceId, String filename, retrofit.Callback<retrofit.client.Response> callback)retrofit.client.ResponsedownloadAttachment(String resourceType, String resourceId, String filename)voiddownloadAttachment(String resourceType, String resourceId, String filename, retrofit.Callback<retrofit.client.Response> callback)List<Attachment>getAttachments(String resourceType, String resourceId)voidgetAttachments(String resourceType, String resourceId, retrofit.Callback<List<Attachment>> callback)AttachmentuploadAttachment(String resourceType, String resourceId, retrofit.mime.TypedFile attachment)voiduploadAttachment(String resourceType, String resourceId, retrofit.mime.TypedFile attachment, retrofit.Callback<Attachment> callback)
-
Method Details
-
getAttachments
@GET("/api/attachment/{resourceType}/{resourceId}") List<Attachment> getAttachments(@Path("resourceType") String resourceType, @Path("resourceId") String resourceId) -
getAttachments
@GET("/api/attachment/{resourceType}/{resourceId}") void getAttachments(@Path("resourceType") String resourceType, @Path("resourceId") String resourceId, retrofit.Callback<List<Attachment>> callback) -
uploadAttachment
@Multipart @POST("/api/attachment/{resourceType}/{resourceId}/upload") Attachment uploadAttachment(@Path("resourceType") String resourceType, @Path("resourceId") String resourceId, @Part("attachment") retrofit.mime.TypedFile attachment) -
uploadAttachment
@Multipart @POST("/api/attachment/{resourceType}/{resourceId}/upload") void uploadAttachment(@Path("resourceType") String resourceType, @Path("resourceId") String resourceId, @Part("attachment") retrofit.mime.TypedFile attachment, retrofit.Callback<Attachment> callback) -
deleteAttachment
-
deleteAttachment
-
downloadAttachment
-
downloadAttachment
-