On Tue, Jun 11, 2013 at 9:42 AM, michael hancock <[email protected]> wrote:
> I just noticed that the API version is embedded in the URL like:
>
> curl -H "Accept: application/json"  http://puppetdb.domain/v2/nodes
>
> I suppose it's too late to implement this so the client would do:
>
> curl -H "Accept: application/json;version=2.0"
> http://puppetdb.domain/api/nodes
>
> I don't want to have to update puppetdb endpoints registered across various
> systems every time the API is versioned.

Embedding the version in the URL is a best-practice for REST interfaces[1].

There should be a /latest/ link that points to the latest API version,
too.  If such a thing does not exist in PuppetDB, then I think that'd
be the better feature request to make.

Dustin

[1] http://shop.oreilly.com/product/0636920021575.do

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to