@Path(value="public/event") @Produces(value="application/json") @Consumes(value="application/json") public class EventResource extends Object
Events in the application.| Constructor and Description |
|---|
EventResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
list(int page,
int size)
Returns the list of
Events stored in the application,
sorted by ascending date and paginated. |
@GET
public javax.ws.rs.core.Response list(@QueryParam(value="page") @DefaultValue(value="1")
int page,
@QueryParam(value="size") @DefaultValue(value="20")
int size)
Events stored in the application,
sorted by ascending date and paginated.page - Page number to retrieve, counting from 1. If not set, it will
be defaulted to the first page.size - Number of events to retrieve per page. If not set, it will be
defaulted to twenty.OK HTTP response containing the list of events in the
requested page.Copyright © 2015. All rights reserved.