Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create /api/search/random #515

Closed
Difegue opened this issue Oct 9, 2021 · 1 comment
Closed

Create /api/search/random #515

Difegue opened this issue Oct 9, 2021 · 1 comment
Labels
API enhancement user survey Issues matching common user requests.

Comments

@Difegue
Copy link
Owner

Difegue commented Oct 9, 2021

This API should take search filters and categories in order to be able to pull a random entry from a given search/category.
Ideally, it should also have a number, so we can pull 1, 5 or 10+ random archives in one call.

/api/search/random?category=xxxxx&filter=yyyy&count=5

@Difegue Difegue added this to the 2021 User Survey Requests milestone Oct 9, 2021
@Difegue Difegue changed the title Create /api/archives/random Create /api/search/random Oct 9, 2021
@Difegue Difegue added user survey Issues matching common user requests. API enhancement labels Oct 9, 2021
Difegue added a commit that referenced this issue Nov 6, 2021
@Difegue
Copy link
Owner Author

Difegue commented Nov 6, 2021

Documentation for the new endpoint can be found at the usual spot: https://sugoi.gitbook.io/lanraragi/v/dev/api-documentation/search-api#get-random-archives-out-of-the-index.

@Difegue Difegue closed this as completed Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement user survey Issues matching common user requests.
Projects
None yet
Development

No branches or pull requests

1 participant