From 0ca73829d0bd006c7c1241ba7da3147e6c114f86 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Tabata <34849594+y-tabata@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:08:54 +0900 Subject: [PATCH] Fix OpenAPI spec POST /admin/realms/{realm}/clients Closes #21536 Signed-off-by: Yoshiyuki Tabata --- .../org/keycloak/services/resources/admin/ClientsResource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/src/main/java/org/keycloak/services/resources/admin/ClientsResource.java b/services/src/main/java/org/keycloak/services/resources/admin/ClientsResource.java index b8476ff7c5..f4fb029315 100755 --- a/services/src/main/java/org/keycloak/services/resources/admin/ClientsResource.java +++ b/services/src/main/java/org/keycloak/services/resources/admin/ClientsResource.java @@ -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();