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

Expand options for adjacent_images endpoint #1317

Open
manthey opened this issue Sep 21, 2023 · 0 comments
Open

Expand options for adjacent_images endpoint #1317

manthey opened this issue Sep 21, 2023 · 0 comments

Comments

@manthey
Copy link
Member

manthey commented Sep 21, 2023

The adjacent_images endpoint is given an item ID and an optional virtual folder ID, from which it options the list of items in that folder, sorts them, and then finds the next and previous items from the specified one that are large_images.

This could be generalized where the folder ID could also be some ancestor folder along with an optional "flatten" flag. Further, the matching criteria for an item could be specified as a mongo query rather than explicitly just large_image. One motivation for this is to allow DIVE to leverage the same functionality, but it could also be eventually used for more sophisticated item browsing.

We could probably also allow a search within each folder or across the whole set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant