@Path(value="event") @Consumes(value="application/json") @Produces(value="application/json") public class EventResource extends Object
| Constructor and Description |
|---|
EventResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
attendToEvent(String eventId) |
javax.ws.rs.core.Response |
getEvent(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getFollowEvents() |
javax.ws.rs.core.Response |
getMyEvents() |
javax.ws.rs.core.Response |
getTopEvents() |
javax.ws.rs.core.Response |
getWallEvents() |
@GET @Path(value="top") public javax.ws.rs.core.Response getTopEvents()
@GET @Path(value="wall") public javax.ws.rs.core.Response getWallEvents()
@POST @Path(value="myevents") public javax.ws.rs.core.Response getMyEvents()
@GET @Path(value="follow") public javax.ws.rs.core.Response getFollowEvents()
@POST
@Path(value="{eventId}/requests")
public javax.ws.rs.core.Response attendToEvent(String eventId)
eventId - id of event to be attended@GET
@Path(value="{eventId}")
public javax.ws.rs.core.Response getEvent(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - he identifier of the event to be returnedCopyright © 2017. All rights reserved.