@Path(value="private/team") @Consumes(value="application/json") @Produces(value="application/json") public class TeamResource extends Object
| Constructor and Description |
|---|
TeamResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addPlayerToTeam(String teamId,
String playerId)
Adds a
Player managed by the user to a Team managed by the User. |
javax.ws.rs.core.Response |
listTeams()
Returns a
List of the Teams managed by the User. |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response listTeams()
List of the Teams managed by the User.List of Teams managed by the User@POST
@Path(value="{TEAM_ID}/player/{PLAYER_ID}")
@Produces(value="application/json")
public javax.ws.rs.core.Response addPlayerToTeam(@PathParam(value="TEAM_ID")
String teamId,
@PathParam(value="PLAYER_ID")
String playerId)
Player managed by the user to a Team managed by the User.Response with the request status.Copyright © 2018. All rights reserved.