@ApplicationScoped
@Consumes(value={"application/json","application/xml"})
@Produces(value={"application/json","application/xml"})
public class LeagueResource
extends Object
LeagueService.| Constructor and Description |
|---|
LeagueResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteLeague(Long id) |
View |
getLeague(Long id) |
View |
getLeagues() |
javax.ws.rs.core.Response |
postLeague(View leagueView,
javax.ws.rs.core.UriInfo uriInfo) |
View |
putLeague(Long id,
View leagueView) |
@GET public View getLeagues()
@POST public javax.ws.rs.core.Response postLeague(View leagueView, @Context javax.ws.rs.core.UriInfo uriInfo)
@PUT
@Path(value="{id}")
public View putLeague(@PathParam(value="id")
Long id,
View leagueView)
@DELETE
@Path(value="{id}")
public void deleteLeague(@PathParam(value="id")
Long id)
Copyright © 2014–2016. All rights reserved.