Class DemandCategoryRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.web.rs.DemandCategoryRestService
-
@Path("/rest/notificationstore/v3/category") public class DemandCategoryRestService extends java.lang.ObjectCategoryRest
-
-
Constructor Summary
Constructors Constructor Description DemandCategoryRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateDemandCategory(java.lang.String code, java.lang.String label, java.lang.String isDefault)Create DemandCategoryjavax.ws.rs.core.ResponsedeleteDemandCategory(java.lang.Integer id)Delete DemandCategoryjavax.ws.rs.core.ResponsegetDemandCategory(java.lang.Integer id)Get DemandCategoryjavax.ws.rs.core.ResponsegetDemandCategoryList()Get DemandCategory Listjavax.ws.rs.core.ResponsemodifyDemandCategory(java.lang.Integer id, java.lang.String code, java.lang.String label, java.lang.String isDefault)Modify DemandCategory
-
-
-
Method Detail
-
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") java.lang.String code, @FormParam("label") java.lang.String label, @FormParam("isDefault") java.lang.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") java.lang.Integer id, @FormParam("code") java.lang.String code, @FormParam("label") java.lang.String label, @FormParam("isDefault") java.lang.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") java.lang.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") java.lang.Integer id)Get DemandCategory- Parameters:
id- the id- Returns:
- the DemandCategory
-
-