Class DemandCategoryRestService
java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.DemandCategoryRestService
CategoryRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateDemandCategory(String code, String label, String isDefault) Create DemandCategoryjavax.ws.rs.core.ResponseDelete DemandCategoryjavax.ws.rs.core.ResponseGet DemandCategoryjavax.ws.rs.core.ResponseGet DemandCategory Listjavax.ws.rs.core.ResponsemodifyDemandCategory(Integer id, String code, String label, String isDefault) Modify DemandCategory
-
Constructor Details
-
DemandCategoryRestService
public DemandCategoryRestService()
-
-
Method Details
-
getDemandCategoryList
@GET @Path("/list") @Produces("application/json") public javax.ws.rs.core.Response getDemandCategoryList()Get DemandCategory List- Parameters:
nVersion- the API version- Returns:
- the DemandCategory List
-
createDemandCategory
@POST @Produces("application/json") public javax.ws.rs.core.Response createDemandCategory(@FormParam("code") String code, @FormParam("label") String label, @FormParam("isDefault") String isDefault) Create DemandCategory- Parameters:
nVersion- the API versioncode- the codelabel- the label- Returns:
- the DemandCategory if created
-
modifyDemandCategory
@PUT @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response modifyDemandCategory(@PathParam("id") Integer id, @FormParam("code") String code, @FormParam("label") String label, @FormParam("isDefault") String isDefault) Modify DemandCategory- Parameters:
nVersion- the API versionid- the idcode- the codelabel- the label- Returns:
- the DemandCategory if modified
-
deleteDemandCategory
@DELETE @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response deleteDemandCategory(@PathParam("id") Integer id) Delete DemandCategory- Parameters:
nVersion- the API versionid- the id- Returns:
- the DemandCategory List if deleted
-
getDemandCategory
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getDemandCategory(@PathParam("id") Integer id) Get DemandCategory- Parameters:
id- the id- Returns:
- the DemandCategory
-