Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7610305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:23:12+00:00 2026-05-31T01:23:12+00:00

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

  • 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:23:13+00:00Added an answer on May 31, 2026 at 1:23 am

    http://example.com/users/12345/bids?start=01-01-2012&end=01-31-2012

    Have the query parameters on the same “level” as the bids (remove the slash before the question mark). But you would probably want to have support for if they only provide one query parameter. So if they only provided “start” then it would get all bids after that date, or if they only provided “end” it would get all bids before that date.

    The reasoning being that query parameters are good for GETting a subset of results from a GET request. They don’t go on another level because the next level is usually one specific item with a unique identifier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to map a REST Webservice URL like http://server:8080/application/service/customer/v1 to createCustomer method in
I have a repository in here http://repos.joomlaguruteam.com/ I using hgweb.cgi this is my hgweb.config
I have managed to get a ContactsContact.Directory working for the most part (http://stackoverflow.com/questions/7436969/contactscontract-directory-how-do-i-return-a-photo), and
I have deployed a simple REST based application in RAD. A simple URL is
I have a REST data service where I want to allow the users to
I have watched railscast http://railscasts.com/episodes/236-omniauth-part-2 And tried to implement the code, everything worked well
Say I have the following pages: http://www.site.com/folder/page.php?id=89 http://www.site.com/folder/page.php?id=85 http://www.site.com/folder/page.php?id=camel+hump http://www.site.com/folder/page.php?id=76 http://www.site.com/folder/page.php?id=71 http://www.site.com/folder/page.php?id=frog http://www.site.com/folder/page.php?id=62 http://www.site.com/folder/page.php?id=59
I have a scenario in which I have REST API which manages a Resource
We have a REST API which clients routinely POST and PUT data to. When
I have some REST web services implemented in WCF. I wish to make these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.