On ma, 29 loka 2018, Lucas Cueff via FreeIPA-users wrote:
Thanks for your prompt feedback and advice.
You are right, sounds a must have for the v1.
Is there some data model published to have link between client version
and api stuff ? I don't know if the API browser for instance can be
requested and sends back some JSON stuff to build all API info on
client side.
Yes, it actually can and it does send it back -- the whole Web UI is a
JavaScript application talking JSON-RPC to the Python-based backend.
See, for example,
https://github.com/tehwalris/go-freeipa, which is a
generated Go client based on the API metadata. It doesn't do that at
runtime, though, but is a good example of how compile-time integration
could be done.
--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland