@@ -29,4 +29,10 @@ public class UserController {
return userRepository.findAll();
}
+ @GetMapping(path="/all")
+ public @ResponseBody Iterable<User> getAllUser(){
+ //this returns a JSON or XML with users
+ return userRepository.findAll();
+ }
+