Class DemandCategoryRestService

java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.rs.DemandCategoryRestService

@Path("/rest/notificationstore/v3/category") public class DemandCategoryRestService extends Object
CategoryRest
  • 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 version
      code - the code
      label - 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 version
      id - the id
      code - the code
      label - 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 version
      id - 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