@Consumes(value="application/json") @Produces(value="application/json") @Path(value="/player") public class PlayerRest extends Object
| Constructor and Description |
|---|
PlayerRest() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createPlayer(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Player player)
Creates a new player
|
javax.ws.rs.core.Response |
getOwnedPlayers() |
javax.ws.rs.core.Response |
getPublicPlayers()
Returns all public players
|
javax.ws.rs.core.Response |
getPublicPlayersByCity(String city)
Returns all players by city
|
javax.ws.rs.core.Response |
updatePlayer(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Player player)
Updates player information
|
@GET @Path(value="/listpublic") public javax.ws.rs.core.Response getPublicPlayers()
@GET
@Path(value="/listpublic/{city}")
public javax.ws.rs.core.Response getPublicPlayersByCity(String city)
city - criteria@GET @Path(value="/private/listowned") public javax.ws.rs.core.Response getOwnedPlayers()
@POST @Path(value="/private/create") public javax.ws.rs.core.Response createPlayer(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Player player)
player - player data to be created@PUT @Path(value="/private/update") public javax.ws.rs.core.Response updatePlayer(es.uvigo.esei.dgss.teamd.ligaaas.domain.entities.Player player)
player - player that will be updatedCopyright © 2018. All rights reserved.