public interface TaskAttachmentResource
Modifier and Type | Method and Description |
---|---|
AttachmentDto |
addAttachment(javax.ws.rs.core.UriInfo uriInfo,
MultipartFormData multipartFormData) |
void |
deleteAttachment(String attachmentId) |
AttachmentDto |
getAttachment(String attachmentId) |
InputStream |
getAttachmentData(String attachmentId) |
List<AttachmentDto> |
getAttachments() |
@GET @Produces(value="application/json") List<AttachmentDto> getAttachments()
@GET @Path(value="/{attachmentId}") @Produces(value="application/json") AttachmentDto getAttachment(@PathParam(value="attachmentId") String attachmentId)
@GET @Path(value="/{attachmentId}/data") @Produces(value="application/octet-stream") InputStream getAttachmentData(@PathParam(value="attachmentId") String attachmentId)
@DELETE @Path(value="/{attachmentId}") @Produces(value="application/json") void deleteAttachment(@PathParam(value="attachmentId") String attachmentId)
@POST @Path(value="/create") @Consumes(value="multipart/form-data") @Produces(value="application/json") AttachmentDto addAttachment(@Context javax.ws.rs.core.UriInfo uriInfo, MultipartFormData multipartFormData)
Copyright © 2019. All rights reserved.