Issue #4392 has been updated by Jesse Wolfe.

Target version set to queued


----------------------------------------
Bug #4392: Make the key portion of the RESTful URI optional if it makes sense
http://projects.puppetlabs.com/issues/4392

Author: Matt Robinson
Status: Accepted
Priority: Normal
Assignee: 
Category: API
Target version: queued
Affected version: 2.6.0
Keywords: rest api
Branch: 


Many REST API calls don't need a key at the end, and you can put any gibberish 
you want to get back a result, but you have to put in some gibberish.  This 
mostly happens when you're using the plural of the resource name to do a search

for example:
curl -k -H "Accept: yaml" https://puppetclient:8139/production/facts/{anything}
curl -k -H "Accept: yaml" 
https://puppetmaster:8140/production/certificate_requests/{anything}

These keys should be made optional in these cases so you can just do:
curl -k -H "Accept: yaml" https://puppetclient:8139/production/facts
curl -k -H "Accept: yaml" 
https://puppetmaster:8140/production/certificate_requests



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to