How to document custom APIs in a Keycloak extension using Swagger/OpenAPI?
I’m developing a custom Keycloak extension and want to expose custom APIs as part of Keycloak’s endpoints (e.g., /admin/realms/<realm>/custom
). Additionally, I want to document these APIs using Swagger/OpenAPI
and serve the Swagger UI
for them, similar to how Keycloak’s admin API is documented.