Fix OpenAPI spec POST /admin/realms/{realm}/clients-initial-access
Closes #25656 Signed-off-by: Yoshiyuki Tabata <yoshiyuki.tabata.jy@hitachi.com>
This commit is contained in:
parent
a10149bbe9
commit
66ee27f413
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,9 @@ 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.media.Content;
|
||||
import org.eclipse.microprofile.openapi.annotations.media.Schema;
|
||||
import org.eclipse.microprofile.openapi.annotations.responses.APIResponse;
|
||||
import org.eclipse.microprofile.openapi.annotations.tags.Tag;
|
||||
import org.keycloak.http.HttpResponse;
|
||||
import org.keycloak.events.admin.OperationType;
|
||||
|
@ -76,6 +79,7 @@ public class ClientInitialAccessResource {
|
|||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Tag(name = KeycloakOpenAPI.Admin.Tags.CLIENT_INITIAL_ACCESS)
|
||||
@Operation( summary = "Create a new initial access token.")
|
||||
@APIResponse(responseCode = "201", description = "Created", content = @Content(schema = @Schema(implementation = ClientInitialAccessCreatePresentation.class)))
|
||||
public ClientInitialAccessPresentation create(ClientInitialAccessCreatePresentation config) {
|
||||
auth.clients().requireManage();
|
||||
|
||||
|
|
Loading…
Reference in a new issue