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 59173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:57:49+00:00 2026-05-10T17:57:49+00:00

What is the benefit of referencing resources using globally-unique URIs (as REST does) versus

  • 0

What is the benefit of referencing resources using globally-unique URIs (as REST does) versus using a proprietary id format?

For example:

  1. http://host.com/student/5
  2. http://host.com/student?id=5

In the first approach the entire URL is the ID. In the second approach only the 5 is the ID. What is the practical benefit of the first approach over the second?

Why does REST (seem to) go out of its way to advocate the first approach?

— EDIT:

My question was confusing because it really asked two separate questions:

  1. What is the benefit of addressibility?
  2. What is the difference between the two URI forms seen above.

I’ve answered both questions below using my own post.

  • 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. 2026-05-10T17:57:50+00:00Added an answer on May 10, 2026 at 5:57 pm

    I will answer my own question:

    1) Why are URIs important?

    I’ll quote from RESTful Web Services by Leonard Richardson and Sam Ruby (ISBN: 978-0-596-52926-0):

    Consider a real URI that names a resource in the genre “directory of resources about jellyfish”: http://www.google.com/search?q=jellyfish. That jellyfish search is just as much a real URI as http://www.google.com. If HTTP wasn’t addressable, or if the Google search engine wasn’t an addressable web application, I wouldn’t be able to publish that URI in a book. I’d have to tell you: “Open a web connection to google.com, type ‘jellyfish’ in the search box, and click the ‘Google Search’ button.

    This isn’t an academic worry. Until the mid-1990s, when ftp:// URIs became popular for describing files on FTP sites, people had to write things like: “Start an anonymous FTP session on http://ftp.example.com. Then change to directory pub/files/ and download file file.txt.” URIs made FTP as addressable as HTTP. Now people just write: “Download ftp:// http://ftp.example.com/pub/files/file.txt.” The steps are the same, but now they can be carried out by machine.

    […]

    Addressability is one of the best things about web applications. It makes it easy for clients to use web sites in ways the original designers never imagined.

    2) What is the benefit of addressibility?

    It is far easier to follow server-provided URIs than construct them yourself. This is especially true as resource relationships become too complex to be expressed in simple rules. It’s easier to code the logic once in the server than re-implement it in numerous clients.

    The relationship between resources may change even though the individual resource URIs remain unchanged. For example, if Google Maps were to change the scale of their map tiles, clients that calculate relative tile positions would break.

    3) What is the benefit of URIs over custom IDs?

    Custom IDs identify a resource uniquely. URIs go a step further by telling you where to find it. This simplifies the client logic.

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

Sidebar

Related Questions

Is the only benefit of using css image sprites that there is less http
What is the benefit of the new Javascript OData library over using jQuery? http://blogs.msdn.com/b/astoriateam/archive/2011/02/08/new-javascript-library-for-odata-and-beyond.aspx
What is the practical benefit of using HTTP GET, PUT, DELETE, POST, HEAD? Why
what is/are the benefit(s) of having multiple spl_autoload_register example: spl_autoload_register('autoload_systems'); spl_autoload_register('autoload_thirdparties'); spl_autoload_register('autoload_services'); vs: using
Is there any benefit to include the length specifier in a format string for
What is the benefit of using SET XACT_ABORT ON in a stored procedure?
What is the benefit of using multiple steps to test variables: $VarLength = strlen($message);
What is the benefit of using many different data types in a language? I
What is benefit of using thead instead of just td? If there is benefit...
Is there any benefit to using .click() over .bind('click') or vice-versa besides the amount

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.