@Produces(value="application/json")
public interface UserRestService
Modifier and Type | Method and Description |
---|---|
ResourceOptionsDto |
availableOperations(javax.ws.rs.core.UriInfo context) |
void |
createUser(UserDto userDto) |
UserResource |
getUser(String id) |
CountResultDto |
getUserCount(javax.ws.rs.core.UriInfo uriInfo) |
List<UserProfileDto> |
queryUsers(javax.ws.rs.core.UriInfo uriInfo,
Integer firstResult,
Integer maxResults) |
static final String PATH
@Path(value="/{id}") UserResource getUser(@PathParam(value="id") String id)
@GET @Produces(value="application/json") List<UserProfileDto> queryUsers(@Context javax.ws.rs.core.UriInfo uriInfo, @QueryParam(value="firstResult") Integer firstResult, @QueryParam(value="maxResults") Integer maxResults)
@GET @Path(value="/count") @Produces(value="application/json") CountResultDto getUserCount(@Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Path(value="/create") @Consumes void createUser(UserDto userDto)
@OPTIONS @Produces(value="application/json") ResourceOptionsDto availableOperations(@Context javax.ws.rs.core.UriInfo context)
Copyright © 2022. All rights reserved.