[openstack-dev] [all][API WG] How does one best express a time interval as an API filtering query?
milanisko k
vetrisko at gmail.com
Fri Oct 7 08:13:55 UTC 2016
Guys,
thanks for the suggestions! I like the coma separation as well, it's the
closest to the ISO style.
Let me propose the update.
Cheers,
milan
čt 6. 10. 2016 v 19:28 odesílatel Jay Pipes <jaypipes at gmail.com> napsal:
> On 10/06/2016 11:43 AM, Jeremy Stanley wrote:
> > On 2016-10-06 10:30:30 -0500 (-0500), Kevin L. Mitchell wrote:
> > [...]
> >> Problem with that is that ':' is a valid character within an ISO date,
> >> though I do like the 'between' prefix. Now, '/' can be used if it's URL
> >> encoded, but I agree that that is non-ideal. How about a syntax
> >> something like:
> >>
> >> ?finished_at=between:ISO_DATE_A at ISO_DATE_B
> &finished_at=between:ISO_DATE_C at ISO_DATE_D
> >
> > I'll admit I'm not up on the intricacies of URL expectations for
> > APIs, but why not just use a comma? That's not an unusual meaning
> > for it as punctuation (at least in English), and has the property
> > that it's not overloading a typical field separator within either
> > 8601 or HTTP encodings. (Now I've fulfilled my bikeshed quota for
> > the month.)
>
> Yup, ++ on a comma.
>
> -jay
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161007/74bed397/attachment.html>
More information about the OpenStack-dev
mailing list