On 03/07/2014 05:31 PM, Erinn Looney-Triggs wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/07/2014 08:57 AM, Petr Viktorin wrote:
On 03/07/2014 04:34 PM, Rich Megginson wrote: [...]
The ipa command line tools use RPC, but they use XML.  If you run
ipa -vv dnsrecord-add ... you can see the XML sent and received.
There is a bit of work converting from XML to JSON.  e.g.
<array><data><value><string>testdomain.com.</string></value><value><string>testdomain.com</string></value></data></array>


is
["testdomain.com.", "testdomain.com."] [...]

Note that FreeIPA 4.0 (current git master) will use JSON-RPC by
default, so you'll no longer need to convert from XML.




It seems the -vv option is quickly becoming very useful for API
users. Currently the logging is very low-level; [...]

Would it be useful to also log pretty-printed JSON with `-vvv`, so
adventurous API explorers can just copy and paste?



Umm, yes please!

Filed as: https://fedorahosted.org/freeipa/ticket/4233


To the ticket I attached a crude patch I've been using; it can act as a starting point if someone wants to jump on this.

--
PetrĀ³

_______________________________________________
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Reply via email to