API Changes to AllWatcher / Environment Tags

roger peppe rogpeppe at gmail.com
Tue Feb 18 18:35:58 UTC 2014


On 18 February 2014 16:03, John Meinel <john at arbash-meinel.com> wrote:
> Can we make the API /uuid/api ?
> That makes them all peer paths.

That's actually something that I was going to suggest too,
and have been meaning to change for a while.
It's actually a bug that currently the API is served at every
url except the others explicitly mentioned. I'd like
to deprecate that behaviour and serve the API only from / (for backward
compatibility) and /api.

There is one thing about this change that makes things harder for
people - it means that if you just have a machine address, you
don't know how to talk to the API on it.

I wonder if we should in fact not deprecate the current paths, but treat
the root path (/api, /charm etc) as the "primary environment" and also serve
/uuid/api, etc too.

Then in the future, the API at /api can potentially be used to discover
what other environments are available (if any) and it's one less
piece of information we need to pass around in the common case
of a single environment server.

  cheers,
    rog.



More information about the Juju-dev mailing list