services/src/main/java/org/keycloak/services/resources/admin/RoleByIdResource.java
/**
     * Make this role a composite role by associating some child roles to it.
     *
     * @param id
     * @param roles
     */
Make this role a composite role by associating some child roles to it.

@param id
@param roles
Make this role a composite role by associating some child roles to it . @param id @param roles
@Path("{role-id}/composites")
    @POST
    @Consumes(MediaType.APPLICATION_JSON)
    public void addComposites(final @PathParam("role-id") String id, List<RoleRepresentation> roles) {
        RoleModel role = getRoleModel(id);
        auth.requireManage();
        addComposites(adminEvent, uriInfo, roles, role);
    }
@ Path ( "{role-id}/composites" ) @ POST @ Consumes ( MediaType . APPLICATION_JSON ) public void addComposites ( final @ PathParam ( "role-id" ) String id , List < RoleRepresentation > roles ) { RoleModel role = getRoleModel ( id ) ; auth . requireManage ( ) ; addComposites ( adminEvent , uriInfo , roles , role ) ; }
Make this role a composite role by associating some child roles to it.
Make this role a composite role by associating some child roles to it .