Rename clientUuid path parameter to client-uuid for consistency

Closes #24960

Signed-off-by: Sophie Tauchert <sophie@999eagle.moe>
This commit is contained in:
Sophie Tauchert 2023-11-13 10:38:32 +01:00 committed by Alexander Schwartz
parent 496c0e7f03
commit 855aebabc2

View file

@ -372,14 +372,14 @@ public class RoleContainerResource extends RoleResource {
* @param clientUuid
* @return
*/
@Path("{role-name}/composites/clients/{clientUuid}")
@Path("{role-name}/composites/clients/{client-uuid}")
@GET
@NoCache
@Produces(MediaType.APPLICATION_JSON)
@Tag(name = KeycloakOpenAPI.Admin.Tags.ROLES)
@Operation( summary = "Get client-level roles for the client that are in the role's composite")
public Stream<RoleRepresentation> getClientRoleComposites(final @Parameter(description = "role's name (not id!)") @PathParam("role-name") String roleName,
final @PathParam("clientUuid") String clientUuid) {
final @PathParam("client-uuid") String clientUuid) {
auth.roles().requireView(roleContainer);
RoleModel role = roleContainer.getRole(roleName);
if (role == null) {