@Path(value="users")
public interface UserService
Modifier and Type | Method and Description |
---|---|
User |
authenticate(String username,
String password) |
List<UserMetadata> |
changelog(Date from) |
void |
clear() |
javax.ws.rs.core.Response |
create(User user) |
void |
delete(UUID key) |
List<User> |
list() |
User |
read(UUID key) |
void |
update(UUID key,
User user) |
@GET @Path(value="changelog") @Produces(value="application/json") List<UserMetadata> changelog(@QueryParam(value="from") Date from)
@GET @Path(value="{key}") @Produces(value="application/json") User read(@PathParam(value="key") UUID key)
@POST @Consumes(value="application/json") javax.ws.rs.core.Response create(User user)
@PUT @Path(value="{key}") @Consumes(value="application/json") void update(@PathParam(value="key") UUID key, User user)
@DELETE @Path(value="{key}") void delete(@PathParam(value="key") UUID key)
@POST @Path(value="authenticate") @Produces(value="application/json") User authenticate(@QueryParam(value="username") String username, @QueryParam(value="password") String password)
@POST @Path(value="clear") void clear()
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.