Created
July 1, 2019 14:58
-
-
Save recursivecodes/3fee274a482f2a456e31761fa667d53e 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") | |
@GET | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getAllUsers() { | |
return Response.ok(this.userRepository.findAll()).build(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment