r/SpringBoot • u/graphlinkdev • 20d ago
News We replaced our hand-written REST client with a schema-generated one: what improved, and what didn't change
/r/graphlinkdotdev/comments/1xwkor0/we_replaced_our_handwritten_rest_client_with_a/
5
Upvotes
6
u/trodiix 20d ago
They did it with the keycloak admin apis that already have a java client provided by keycloak, what they did is stupid, I wouldn't trust this article
2
u/perfectstrong 20d ago
Why don't we use the Keycloak admin client ? https://mvnrepository.com/artifact/org.keycloak/keycloak-admin-client
1
u/sereikis 19d ago
the 'contract drift is a compile error' claim needs a boundary: an upstream Keycloak change can still compile cleanly if your local schema hasn't changed. keep an integration test against the Keycloak versions you support, since a fake server built from that same schema can agree with the client while both disagree with the real API.
2
u/This_Link881 20d ago
In 2026? You shouldn't rush, bro.