Class DemandTypeRestService
java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.DemandTypeRestService
Service Rest DemandTypeRestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Create DemandTypejavax.ws.rs.core.ResponsedeleteDemandType(int nId) Delete DemandTypejavax.ws.rs.core.ResponsegetDemandType(Integer nId) Get DemandTypejavax.ws.rs.core.ResponsegetDemandTypeList(String strDirectMode) Get DemandType Listjavax.ws.rs.core.ResponsemodifyDemandType(Integer nId, fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandtypeInput) Modify DemandType
-
Constructor Details
-
DemandTypeRestService
public DemandTypeRestService()
-
-
Method Details
-
getDemandTypeList
@GET @Produces("application/json") public javax.ws.rs.core.Response getDemandTypeList(@QueryParam("direct") String strDirectMode) Get DemandType List- Parameters:
nVersion- the API version- Returns:
- the DemandType List
-
createDemandType
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createDemandType(fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandType) Create DemandType- Parameters:
strJson- the JSON body representing the DemandType to create- Returns:
- the DemandType if created
-
modifyDemandType
@PUT @Path("/{id}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response modifyDemandType(@PathParam("id") Integer nId, fr.paris.lutece.plugins.grubusiness.business.demand.DemandType demandtypeInput) Modify DemandType- Parameters:
nId- the primary key of the DemandType to modifystrJson- the JSON body representing the DemandType values to apply- Returns:
- the DemandType if modified
-
deleteDemandType
@DELETE @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response deleteDemandType(@PathParam("id") int 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
-