Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3619

Proper REST formatted URL with date ranges

$
0
0

I have a REST URL to get all users formatted like this:http://example.com/users

To get an individual user by id:http://example.com/users/12345

To get all user's bids:http://example.com/users/12345/bids

To get all user's bids between two dates:http://example.com/users/12345/bids/?start=01/01/2012&end=01/31/2012

or should it be like this:http://example.com/users/12345/bids/start/01012012/end/01312012

I'm leaning towards the 1st date range URL as start and end are not entities in the domain. What is the proper way to format a REST URL with a date range?

Thanks,

Tom


Viewing all articles
Browse latest Browse all 3619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>