OpenAPI Specification for Keycloak REST APIs

Hello, is anyone aware of any OpenAPI (Swagger3) JSON definitions for the Keycloak Admin and Protection APIs? So far, I’ve come across a repo that generates the admin OpenAPI from the published HTML spec (https://github.com/ccouzens/keycloak-openapi) but complete absence of anything for the Protection API, not even the HTML specification - would be glad to be proved wrong

I’m surprised that Keycloak don’t publish and maintain the OpenAPI specifications - they would be extremely useful for developing consistent client applications and to support test / mocking, etc

1 Like

There is an open issue for that on the keycloak issue tracker tool : https://issues.redhat.com/browse/KEYCLOAK-14744

2 Likes

If it can help, a complete postman collection is available here : https://documenter.getpostman.com/view/7294517/SzmfZHnd

3 Likes