[openstack-dev] [api] Counting resources

Everett Toews everett.toews at RACKSPACE.COM
Wed Nov 26 22:03:52 UTC 2014

On Nov 20, 2014, at 4:06 PM, Eoghan Glynn <eglynn at redhat.com<mailto:eglynn at redhat.com>> wrote:

How about allowing the caller to specify what level of detail
they require via the Accept header?

▶ GET /<prefix>/<resource_name>
 Accept: application/json; detail=concise

"The Accept request-header field can be used to specify certain media types which are acceptable for the response.” [1]

detail=concise is not a media type and looking at the grammar in the RFC it wouldn’t be valid. It’s not appropriate for the Accept header.


[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141126/8633321e/attachment.html>

More information about the OpenStack-dev mailing list