diff --git a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/ConnectionWebController.java b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/ConnectionWebController.java index c6113a0ee..0519079a3 100644 --- a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/ConnectionWebController.java +++ b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/ConnectionWebController.java @@ -49,7 +49,7 @@ public ResponseEntity getConnectionById( } @Operation(description = "GET a list of existing Connection, requires SUPER_ADMIN or ADMIN role") - @GetMapping(value = "/", produces = "application/json") + @GetMapping @Secured({SUPER_ADMIN, ADMIN}) public ResponseEntity> getAllConnections() { List allConnections = connectionWebService.getAllConnections(); diff --git a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/RoleController.java b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/RoleController.java index aacf64077..fa510c262 100644 --- a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/RoleController.java +++ b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest/RoleController.java @@ -25,7 +25,7 @@ */ @Tag(name = "Role Management") @Controller -@RequestMapping(value = "/role") +@RequestMapping("/role") public class RoleController { private final RoleService roleService; @@ -49,8 +49,8 @@ public ResponseEntity getRoleById( } @Operation(description = "GET a list of existing Roles, requires ADMIN or SUPER_ADMIN role") - @GetMapping(produces = "application/json") @RolesAllowed({ADMIN, SUPER_ADMIN}) + @GetMapping public ResponseEntity> getRoleAll() { List allRoles = this.roleService.getAllRoles(); return PICSUREResponse.success(allRoles);