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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:02:18+00:00 2026-05-30T13:02:18+00:00

I have trouble figuring out any option on how to best define a REST/HATEOAS

  • 0

I have trouble figuring out any option on how to best define a REST/HATEOAS service where exhaustively listing available resource options is not a possibility due to the huge number of them.

In particular, a part of the system would be resources for indexed word usage statistics in a large corpus of text – something like GET http://mysite.org/word_statistics/foobar that returns information on foobar and URI’s to documents where foobar is used.

However, I can’t provide any reasonable way where the app might discover the actual http://mysite.org/word_statistics/foobar link – the canonical approach seems to be to provide a resource like http://mysite.org/word_statistics that would return a list of the individual URI’s, but in my case that list would be around a gigabyte, so not reasonably practical. So I’d need to give the requesting app something like http://mysite.org/word_statistics/{your_query_here}, but there seems to be no RESTful way to do that.

How should this be done properly?

  • 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-30T13:02:20+00:00Added an answer on May 30, 2026 at 1:02 pm

    I would just follow the classic search pattern used in many places.

    • http://example.org/word_statistics — this would return everything, words and links, but you don’t want to return everything, so you don’t and instead return the appropriate error code with perhaps descriptions of what query options you do support. Or you could return everything, but in pages (10, 100, 1000 words at a time…).

    • http://example.org/word_statistics/{word} — the statistics for the given word.

    • http://example.org/word_statistics?like=word — this returns a list of words that are “like” word, this could handle misspelling and soundalikes, or whatever.

    • http://example.org/word_statistics?from_word=word1&to_word=word2 — returns a list of words that starts, alphabetically, with from_word and goes to to_word, but under the same limit and paging constraints you’d have for the original list.

    You could also do something like:

    • http://example.org/{document}/words — that returns the words that are just in that document, with links to their statistics.

    All sorts of things you can do here. But, the gist is that a basic search pattern should fill the need readily.

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

Sidebar

Related Questions

I'm having trouble figuring out how best to model my data. I have the
I'm having trouble figuring out the best way to do this. I have a
I have trouble figuring out why a simple division like this one always returns
I'm having some trouble figuring out to call methods that I have in other
Ok I am having trouble figuring out how to approach this. I have a
I am running into an error I am having trouble figuring out. I have
I'm having trouble figuring this out. If I have a checkboxlist inside a usercontrol,
I'm having some trouble figuring this out. I have an unordered list menu that
I'm having trouble figuring out how to solve this issue. I have a file
I'm having trouble figuring out how to use soundfonts on android (that have a

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.