Class PersonsRestService

Object
PersonsRestService

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

    • PersonsRestService

      public PersonsRestService()
  • 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)
    • findAll

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

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

      @GET @Path("count") @Produces("text/plain") public String count()
    • getItemInstances

      @GET @Path("{id}/items") @Produces("application/json") public String getItemInstances(@PathParam("id") String id)