We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df54016 commit 292e2c1Copy full SHA for 292e2c1
backend/webandtech/src/main/java/webapp8/webandtech/controller/api/users/UserRestControler.java
@@ -12,6 +12,29 @@
12
@CrossOrigin
13
@RequestMapping("api/users")
14
public class UserRestControler {
15
+
16
+ @Autowired
17
+ private UserService userService;
18
19
20
+ private ProductService productsService;
21
22
+ @Operation(summary = "Get a all users")
23
+ @ApiResponses(value = {
24
+ @ApiResponse(
25
+ responseCode = "200",
26
+ description = "Found the Users",
27
+ content = {@Content(
28
+ mediaType = "application/json"
29
+ )}
30
+ )
31
+ })
32
+ @JsonView(Users.Detailed.class)
33
+ @GetMapping("/")
34
+ public List<Users> getAllUsers(){
35
+ return userService.getAll();
36
+ }
37
38
39
}
40
0 commit comments