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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:38:01+00:00 2026-06-08T05:38:01+00:00

I have to decide on a pagination strategy for returning results from a list.

  • 0

I have to decide on a pagination strategy for returning results from a list. In particular, I am considering two approaches:

Example that lists results from 50 to 75:

Using query params: GET /items?start=50&limit=25

Pros

  • Widely used
  • Bookmarkable

Cons

  • You will probably need to encode the URL ("&" character) to place it on XML response (complying with HATEOAS), and in that case the URL will not be very human friendly.

Embedded on the URL (page as a sub resource): GET /items/from-page-50-limited-to-25

Pros

  • As human readable as needed (not required but seems like a good thing)
  • No encoding necessary ever

Cons

  • A little harder to build the URL client side
  • Page is not really a sub resource of items, but a sub product of the listing items strategy

In your opinion, which would be the best REST practice approach?

Thanks in advance!

  • 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-08T05:38:03+00:00Added an answer on June 8, 2026 at 5:38 am

    I believe you pointed out what is best practice by doing the research and saying that the first of you options is widely used. It is also the option I believe best conforms to how the query component is meant to be used. In RFC 3986, it states

    The query component contains non-hierarchical data that, along with
    data in the path component (Section 3.3), serves to identify a
    resource

    (from Querystring in REST Resource url).

    Another way to look at it is that your second option is saying that /items/from-page-50-limited-to-25 is a unity resource/entity as well as is /items/from-page-1-limited-to-25. For me it’s more natural to think that /items is it unique resource where I can get a selection of the collection.

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

Sidebar

Related Questions

i have to decide w#w using a two tape Turing machine. I know that
I have two forms. First one is to decide button numbers by using jslider.
I have a function that takes a string-like argument. I want to decide if
I want to have a custom control that works on whatever documents I decide
I am trying to decide which way to go. I have a solution that
i neeed something like this in C#.. have list in class but decide what
I have create a simple grid that retrieves data from a server through php.
When designing classes you usually have to decide between: providing a full constructor that
I'm new to IPhone development and have to decide on a suitable tool to
I am in a massive rush and have to decide on a phone platform

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.