Class MethodsRestService

Object
MethodsRestService

@DeclareRoles("deputy") @RolesAllowed("deputy") @Path("/administration/methods") public class MethodsRestService extends Object
Author:
maartenl
  • Constructor Details

    • MethodsRestService

      public MethodsRestService()
  • Method Details

    • create

      @POST @Consumes("application/json") public void create(String json)
    • edit

      @PUT @Path("{id}") @Consumes("application/json") public void edit(@PathParam("id") String id, String json)
    • remove

      @DELETE @Path("{id}") public void remove(@PathParam("id") String id)
    • find

      @GET @Path("{id}") @Produces("application/json") public String find(@PathParam("id") String id)
    • getCommands

      @GET @Path("{id}/commands") @Produces("application/json") public String getCommands(@PathParam("id") String id)
    • findAll

      @GET @Produces("application/json") public Response findAll(@Context UriInfo info)
    • findRange

      @GET @Path("{offset}/{pageSize}") @Produces("application/json") public String findRange(@Context UriInfo info, @PathParam("offset") Integer offset, @PathParam("pageSize") Integer pageSize)
    • count

      @GET @Path("count") @Produces("text/plain") public String count(@Context UriInfo info)