Fix OpenAPI spec POST /admin/realms/{realm}/clients

Closes #21536 

Signed-off-by: Yoshiyuki Tabata <yoshiyuki.tabata.jy@hitachi.com>
This commit is contained in:
Yoshiyuki Tabata 2023-12-18 18:08:54 +09:00 committed by GitHub
parent 66ee27f413
commit 0ca73829d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ package org.keycloak.services.resources.admin;
import org.eclipse.microprofile.openapi.annotations.Operation;
import org.eclipse.microprofile.openapi.annotations.extensions.Extension;
import org.eclipse.microprofile.openapi.annotations.parameters.Parameter;
import org.eclipse.microprofile.openapi.annotations.responses.APIResponse;
import org.eclipse.microprofile.openapi.annotations.tags.Tag;
import org.jboss.logging.Logger;
import org.jboss.resteasy.annotations.cache.NoCache;
@ -178,6 +179,7 @@ public class ClientsResource {
@Consumes(MediaType.APPLICATION_JSON)
@Tag(name = KeycloakOpenAPI.Admin.Tags.CLIENTS)
@Operation( summary = "Create a new client Clients client_id must be unique!")
@APIResponse(responseCode = "201", description = "Created")
public Response createClient(final ClientRepresentation rep) {
auth.clients().requireManage();