@Path(value="/nobelprizes") public class NobelPrizesResource extends Object
Constructor and Description |
---|
NobelPrizesResource() |
Modifier and Type | Method and Description |
---|---|
NobelPrizesofCategoryResource |
getElement(Long id)
Gets the sub resource to handle the "categories/{category}" part of the
path.
|
List<NobelPrize> |
getNobelPrizes()
Gets all the Nobel Prizes.
|
@GET @Produces(value={"application/xml","application/json"}) public List<NobelPrize> getNobelPrizes()
@Path(value="categories/{category}") public NobelPrizesofCategoryResource getElement(@PathParam(value="category") Long id)
id
- The ID of the category.Copyright © 2008–2018. All rights reserved.