Re: asking for multiple fragments from the same resource
William Riley-Land <[email protected]> Mon, 3 Feb 2014 15:25:01 -0600
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
My understanding is that the GET request is your query, and that the query string is for modifying the query. It seems like what you are doing is very similar, if not exactly filtering the query to certain instances, and therefor the query string would be the most appropriate avenue for expressing that modification of the query. William P. Riley-Land http://linkedin.com/in/willprl Scalable API Engineer / Owner Kun.io App Studio LLC http://kun.io/ (573) 823-2607 On Feb 3, 2014, at 11:50 AM, <[email protected]> <[email protected]> wrote: > I have this resource... > > > > example.com/my/api/32 > > It returns 'n' pieces of data. I want to return only one "data_q"... > > example.com/my/api/32#data_q > > easy enough. But what, in your view, should done if I want 3 pieces of data? > > I really don't think this is kosher... > example.com/my/api/32#data_a#data_q#data_z > I really do't think asking for multiple fragments constitutes a query... > example.com/my/api/32?data=data_a,data_q,data_z > > I would love to hear your ideas. > > Thank you > > Walter > >