@Path(value="/nobelprize-categories") public class NobelPrizeCategoriesResource extends Object
Constructor and Description |
---|
NobelPrizeCategoriesResource() |
Modifier and Type | Method and Description |
---|---|
NobelPrizeCategoryResource |
getCategory(Long id)
Gets the sub resource to handle the "{category}" part of the path.
|
List<NobelPrizeCategory> |
getNobelPrizeCategories()
Gets all the NobelPrizeCategories.
|
@GET @Produces(value={"application/xml","application/json"}) public List<NobelPrizeCategory> getNobelPrizeCategories()
@Path(value="{category}") public NobelPrizeCategoryResource getCategory(@PathParam(value="category") Long id)
id
- The ID of the NobelPrizeCategory.Copyright © 2008–2018. All rights reserved.