Class UserService


  • @Path("users")
    public class UserService
    extends Object
    • Constructor Detail

      • UserService

        public UserService()
    • Method Detail

      • list

        @GET
        @Produces("application/json")
        public List<User> list()
      • changelog

        @GET
        @Path("changelog")
        @Produces("application/json")
        public List<UserMetadata> changelog​(@QueryParam("from")
                                            Date from)
      • read

        @GET
        @Path("{key}")
        @Produces("application/json")
        public User read​(@PathParam("key")
                         UUID key)
      • create

        @POST
        @Consumes("application/json")
        public javax.ws.rs.core.Response create​(User user)
      • update

        @PUT
        @Path("{key}")
        @Consumes("application/json")
        public void update​(@PathParam("key")
                           UUID key,
                           User updatedUser)
      • delete

        @DELETE
        @Path("{key}")
        public void delete​(@PathParam("key")
                           UUID key)
      • authenticate

        @POST
        @Path("authenticate")
        @Produces("application/json")
        public User authenticate​(@QueryParam("username")
                                 String username,
                                 @QueryParam("password")
                                 String password)
      • clear

        @POST
        @Path("clear")
        public void clear()