@Produces(value={"application/json","application/xml"})
@Consumes(value={"application/json","application/xml"})
@Path(value="/msg")
public interface MessagingResource
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete(int id)
Delete message with given ID
|
GenericResponse |
list(boolean unread)
List messages for the current user
|
GenericResponse |
read(MessagesReadRequest request)
Set messages to be read
|
GenericResponse |
send(MessageSendRequest request)
Send a message to users/groups
|
@DELETE
@Path(value="/{id}")
javax.ws.rs.core.Response delete(@PathParam(value="id")
int id)
throws Exception
id - message idException@POST @Path(value="/send") GenericResponse send(MessageSendRequest request) throws Exception
request - request to send messagesException@GET @Path(value="/list") GenericResponse list(@QueryParam(value="unread") @DefaultValue(value="false") boolean unread) throws Exception
unread - true if only unread messages shall be shown, false for all
messages (default)Exception@POST @Path(value="/read") GenericResponse read(MessagesReadRequest request) throws Exception
request - request containing the list of messages to be set readExceptionCopyright © 2024 Gentics Software. All rights reserved.