Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic API version #21

Open
stdweird opened this issue Apr 17, 2016 · 1 comment
Open

Dynamic API version #21

stdweird opened this issue Apr 17, 2016 · 1 comment

Comments

@stdweird
Copy link
Owner

The current has the API version harcoded via the distributed Net::FreeIPA::API::Data module.

It should be possible to use future, not-yet distributed features from newer API (or older API).
This can be achieved by fetching the API version and command data on demand, rather than loading it from the distributed Data module.

IN particular, this requires modification in
https://github.com/stdweird/p5-net-freeipa/blob/master/lib/Net/FreeIPA/API/Magic.pm#L135
(and a similar change for the version function in same module).

The code to retrieve the most recent version and accompanying commands is already used in gen_api, in particular https://github.com/stdweird/p5-net-freeipa/blob/master/gen_api/gen_api.pl#L50

Also the method to control the behaviour wrt the API version is required. Set the required version (default the distributed one), and control the fallback (if version X is requested and not avail by server, either fail hard or try the distributed version).

@stdweird stdweird changed the title Dynmic API version Dynamic API version Apr 17, 2016
@stdweird
Copy link
Owner Author

@abbra this is what we discussed via mail (i think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant