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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:27:39+00:00 2026-06-15T00:27:39+00:00

If I have a URL that represents a collection, is there a good way

  • 0

If I have a URL that represents a collection, is there a good way to describe filters?

e.g. http://example.com/comic_books?after=2001-01-01&before=2002-03-09

If I make these filters part of the service contract, aren’t I violating the idea of hypermedia as the engine of application state?

Do I need to have another resource that links to my collection and describes the filters e.g. via an HTML form?

  • 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-15T00:27:40+00:00Added an answer on June 15, 2026 at 12:27 am

    You can consider an HTML form as a URL template representing your resource and the filter, there’s nothing wrong with that, we all do it every day (google.com?s=query). There are those that argue that you don’t need a form to represent a URL template, that documentation alone is adequate, so for many the form itself is optional.

    The hyper media aspect is mostly related to the presence of the links themselves. Documenting the service is not an “out of band” consideration. What you want though is to present the link options as part of the hyper media that the client can follow. The form can be nice, but it’s not required. You can use (even require) the same link and query parameters for the filter without explicitly listing them as part of the payload.

    Consider HAL as an alternative to HTML, and it has no concept of forms, yet is consider by many to be a fine hyper media compatible media type.

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

Sidebar

Related Questions

I have a url that looks like that http://example.com/index.php?id=111&title=word1 word2 word3 I need to
I have a URL that would be like so: http://mysite.com/index.php?somename=somevalue I usually check that
I have a URL that returns a HTTP 302 redirect, and I would like
I am trying to have a URL that would look like: mysite.com/@username Which would
I have a URL that, when requested, start the download of a .zip file.
I have a URL that I need to call from a PHP script. The
I have a URL that is shown below: URL is taken out due to
I have a url that contains valid xml, but unsure on how I could
is it possible to have a url that has a param with an &
I have a callback url that gets called, and I can process it. However

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.