Created
July 1, 2019 14:58
-
-
Save recursivecodes/72e78a3084095b5a5678107dcd75f932 to your computer and use it in GitHub Desktop.
UserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/list/{offset}/{max}") | |
@GET | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getAllUsersPaginated(@PathParam("offset") int offset, @PathParam("max") int max) { | |
return Response.ok(this.userRepository.findAll(offset, max)).build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment