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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:43:54+00:00 2026-06-04T19:43:54+00:00

Here are a couple of standard URLs of a RESTful API. http://api.example.com/user/123 http://api.example.com/users The

  • 0

Here are a couple of standard URLs of a RESTful API.

  • http://api.example.com/user/123
  • http://api.example.com/users

The first retrieves a single user, the second – a collection of users (let’s say 20).

What is the “REST” term to refer to these URLs? Is it correct to refer to them as resources? If the first is a resource, should the second be a resource collection or should it rather be just a resource of type collection?

  • 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-06-04T19:43:56+00:00Added an answer on June 4, 2026 at 7:43 pm

    Every URI on a RESTful application is a resource, this description is sufficient.

    Resources that link to several resources of the same type may be called collections, but there is no official name for that. Every resource, being a collection or not, can have links.

    Links between resources are the Hypermedia part of a RESTful system. Recently, a new term came up for this: HATEOAS, Hypermedia As The Engine Of Application State.

    It’s a common good practice to name collections in plural, so your /users/ sample seems correct. The user 123 is a child of the users collection, so it may be better to put it under /users/123 in plural as well.

    A RESTful, HATEOAS application would respond a list of links on /users/ pointing to individual resources. Something like:

    {
        "links": [
            {
                "href" : "/users/123/"
                "title" : "Alexandre Gaigalas"
            },
            {
                "href" : "/users/125/"
                "title" : "John Doe"
            },
        ]
    }
    

    Or in XML:

    <link href="/users/123" title="Alexandre Gaigalas">
    ...
    

    Additional information apart from the links object in JSON or tags in XML may be provided.

    These links stabilish a RESTful hypermedia relationship between resources. The samples I gave are mostly hierarchical between collections and individuals, but other types of links may be declared:

    <link href="/users/123/picture.jpg" title="Alexandre Gaigalas avatar" rel="picture">
    

    The collection terminology was created mostly for abstracting a RESTful implementation in programming languages, so developers can group and manipulate groups of similar resources more easily.

    When present, query string parameters identify different resources as well, so /users/?since=2009 is a different from /users/. They’re both different resources, although very similar ones.

    Fragment identifiers, even though not sent to the server anyway, are considered different resources as well, so /users/123#bio is different from /users/123.

    If possible, a more meaningful pagination is better. Page numbers are hard to handle RESTfully because they change a lot. If there is a frequently updated collection (like a list of StackOverflow questions for example), the page one frequently changes and the user may loose items changing from page 1 to page 2. Most collections can be paginated by date or alphabetically. Incremental page numbers aren’t wrong, but there are better mechanisms.

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

Sidebar

Related Questions

I just found Dean Edwards javascript packer here: http://dean.edwards.name/packer/ It has a couple of
Here are a couple ways to apply CSS styling to an element using jQuery
Ok so there are couple posts here already on this and fewer still out
Here's the problem: I have couple of pages which gets its content from a
here's the code from the APICallsViewController file and a couple of screenshots. my app
Firstly here is my ruby and rails version with a couple of the important
I've found a couple of search results here but they're all for jQuery and
I've seen a couple of SQLite performance questions here on Stackoverflow, but the focus
I have seen a couple of question regarding creating datasets in DbUnit here on
The current form is here . It is not complete, and only a couple

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.