@Path(value="event") public class EventREST extends Object
| Constructor and Description |
|---|
EventREST() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getMyJoinedEvents(String login)
Obtains a list with all the events in which one user has joined and show
that list
|
javax.ws.rs.core.Response |
getPoupularEvents()
Obtains a list with the first five most popular events and show it.
|
@GET
@Produces(value="application/json")
@Path(value="joined/{login}")
public javax.ws.rs.core.Response getMyJoinedEvents(@PathParam(value="login")
String login)
login - the login of the user calling for his events@GET @Produces(value="application/json") @Path(value="popular") public javax.ws.rs.core.Response getPoupularEvents()
Copyright © 2016. All rights reserved.