Class DemandTypeRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.notificationstore.web.rs.DemandTypeRestService
-
@Path("/rest/notificationstore/v3/demandType") public class DemandTypeRestService extends ObjectService Rest DemandTypeRestService
-
-
Constructor Summary
Constructors Constructor Description DemandTypeRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateDemandType(String strIdDemandType, String strLabel, String strUrl, String strAppCode, String strCategory)Create DemandTypejavax.ws.rs.core.ResponsedeleteDemandType(Integer nId)Delete DemandTypejavax.ws.rs.core.ResponsegetDemandType(Integer nId)Get DemandTypejavax.ws.rs.core.ResponsegetDemandTypeList()Get DemandType Listjavax.ws.rs.core.ResponsemodifyDemandType(Integer nId, String strIdDemandType, String strLabel, String strUrl, String strAppCode, String strCategory)Modify DemandType
-
-
-
Method Detail
-
getDemandTypeList
@GET @Produces("application/json") public javax.ws.rs.core.Response getDemandTypeList()Get DemandType List- Parameters:
nVersion- the API version- Returns:
- the DemandType List
-
createDemandType
@POST @Path("") @Produces("application/json") public javax.ws.rs.core.Response createDemandType(@FormParam("id_demand_type") String strIdDemandType, @FormParam("label") String strLabel, @FormParam("url") String strUrl, @FormParam("app_code") String strAppCode, @FormParam("category") String strCategory)Create DemandType- Parameters:
nVersion- the API versionstrIdDemandType- the id_demand_typestrLabel- the labelstrUrl- the urlstrAppCode- the app_codestrCategory- the category- Returns:
- the DemandType if created
-
modifyDemandType
@PUT @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response modifyDemandType(@PathParam("id") Integer nId, @FormParam("id_demand_type") String strIdDemandType, @FormParam("label") String strLabel, @FormParam("url") String strUrl, @FormParam("app_code") String strAppCode, @FormParam("category") String strCategory)Modify DemandType- Parameters:
nVersion- the API versionid- the idstrIdDemandType- the id_demand_typestrLabel- the labelstrUrl- the urlstrAppCode- the app_codestrCategory- the category- Returns:
- the DemandType if modified
-
deleteDemandType
@DELETE @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response deleteDemandType(@PathParam("id") Integer nId)Delete DemandType- Parameters:
nVersion- the API versionnId- the nId- Returns:
- the DemandType List if deleted
-
getDemandType
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getDemandType(@PathParam("id") Integer nId)Get DemandType- Parameters:
nVersion- the API versionnId- the nId- Returns:
- the DemandType
-
-