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:
parent
66ee27f413
commit
0ca73829d0
1 changed files with 2 additions and 0 deletions
|
@ -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 Client’s client_id must be unique!")
|
||||
@APIResponse(responseCode = "201", description = "Created")
|
||||
public Response createClient(final ClientRepresentation rep) {
|
||||
auth.clients().requireManage();
|
||||
|
||||
|
|
Loading…
Reference in a new issue