You'll have to check out some of the bindings code: http://bazaar.launchpad.net/~juju-deployers/python-jujuclient/trunk/view/head:/jujuclient.py
That should give you a good indication of what the juju api server requires. For example the credentials need to be in a form of {'Type': 'Admin', 'Request': 'Login', 'RequestId': 1, 'Params': {'AuthTag': 'user-admin', 'Password': None}} The above library is a single file which is pretty easy to grok and has good documentation on what the functions do. On Wed, Nov 4, 2015 at 11:04 AM, André Moreira <andre....@gmail.com> wrote: > Hi Adam, > What I mean is how do I construct the json requests and how should I > expect the json response to be provided. Do you know where do I find this > kind of documentation? I mean, is there a doc for it without needing to > read the source code? > André > > 2015-11-04 11:34 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: > >> If you're going to use Go or creating bindings of your own the api >> documentation is https://godoc.org/github.com/juju/juju/api. >> >> On Wed, Nov 4, 2015 at 8:30 AM, André Moreira <andre....@gmail.com> >> wrote: >> >>> Thank you, Mark, for the reply. >>> Nice to know there is this library and there will be an official one! >>> But, if I want to use the REST api without the python library, where can >>> I find documentation for it? >>> Thanks in advance, >>> André >>> >>> 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth <m...@ubuntu.com>: >>> >>>> On 04/11/15 09:02, Merlijn Sebrechts wrote: >>>> > I'm very interested to hear more about that python library! Is this >>>> > something that will be discussed at the summit? >>>> >>>> It could be. There have been a couple of informal variations on this >>>> theme from various sources, we recently decided it was worth making an >>>> official one. Someone closer to that work would be able to provide more >>>> insight, including whether it will be based on one like >>>> http://python-jujuclient.readthedocs.org/ or whether it's a fresh >>>> start. >>>> >>>> Mark >>>> >>> >>> >>> >>> -- >>> >>> Le doux charme de maint songe >>> Par leur bel art inventé >>> Sous les habits du mensonge >>> Nous offre la vérité. >>> -La Fontaine >>> >>> -- >>> Juju mailing list >>> Juju@lists.ubuntu.com >>> Modify settings or unsubscribe at: >>> https://lists.ubuntu.com/mailman/listinfo/juju >>> >>> >> > > > -- > > Le doux charme de maint songe > Par leur bel art inventé > Sous les habits du mensonge > Nous offre la vérité. > -La Fontaine >
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju