File tree 2 files changed +3
-3
lines changed
pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/rest 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public ResponseEntity<?> getConnectionById(
49
49
}
50
50
51
51
@ Operation (description = "GET a list of existing Connection, requires SUPER_ADMIN or ADMIN role" )
52
- @ GetMapping ( value = "/" , produces = "application/json" )
52
+ @ GetMapping
53
53
@ Secured ({SUPER_ADMIN , ADMIN })
54
54
public ResponseEntity <List <Connection >> getAllConnections () {
55
55
List <Connection > allConnections = connectionWebService .getAllConnections ();
Original file line number Diff line number Diff line change 25
25
*/
26
26
@ Tag (name = "Role Management" )
27
27
@ Controller
28
- @ RequestMapping (value = "/role" )
28
+ @ RequestMapping ("/role" )
29
29
public class RoleController {
30
30
31
31
private final RoleService roleService ;
@@ -49,8 +49,8 @@ public ResponseEntity<?> getRoleById(
49
49
}
50
50
51
51
@ Operation (description = "GET a list of existing Roles, requires ADMIN or SUPER_ADMIN role" )
52
- @ GetMapping (produces = "application/json" )
53
52
@ RolesAllowed ({ADMIN , SUPER_ADMIN })
53
+ @ GetMapping
54
54
public ResponseEntity <List <Role >> getRoleAll () {
55
55
List <Role > allRoles = this .roleService .getAllRoles ();
56
56
return PICSUREResponse .success (allRoles );
You can’t perform that action at this time.
0 commit comments