Current shelf of book #3449

Closed
opened 2026-02-05 06:45:07 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @GenTexX on GitHub (Jan 13, 2023).

API Endpoint or Feature

If i get my list of Books, it would be nice to know in what shlef they currently are.

Use-Case

Yes, Books should be unique by name, but for in my case, I have a few books with the same name in different shelves. Would be nice to differentiate them by shelf.

Additional context

No response

Originally created by @GenTexX on GitHub (Jan 13, 2023). ### API Endpoint or Feature If i get my list of Books, it would be nice to know in what shlef they currently are. ### Use-Case Yes, Books should be unique by name, but for in my case, I have a few books with the same name in different shelves. Would be nice to differentiate them by shelf. ### Additional context _No response_
OVERLORD added the 🔩 API Request label 2026-02-05 06:45:07 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 14, 2023):

Thanks for the suggestion.
I'm not sure on where we should expand the scope for the books - list endpoint, showing assigned shelves seems like it would be a bit out of scope since it's one-to-many parental detail. This is not a format we ever have in the interface itself at all.

It would make more sense to add a list of assigned shelves to the books - get endpoint, which would achieve the same thing but may require additional API calls.

You technically could already achieve this via pre-fetching the details of each shelf in the system, which lists assigned books, but I can see that's not ideal.

@ssddanbrown commented on GitHub (Jan 14, 2023): Thanks for the suggestion. I'm not sure on where we should expand the scope for the `books - list` endpoint, showing assigned shelves seems like it would be a bit out of scope since it's one-to-many parental detail. This is not a format we ever have in the interface itself at all. It would make more sense to add a list of assigned shelves to the `books - get` endpoint, which would achieve the same thing but may require additional API calls. You technically could already achieve this via pre-fetching the details of each shelf in the system, which lists assigned books, but I can see that's not ideal.
Author
Owner

@ssddanbrown commented on GitHub (Jan 26, 2023):

I'm going to therefore close this off as I do feel that a many-parent relation is out of scope for a listing endpoint, but if the alternative books - get option as mentioned above would suffice feel free to re-request for that.

@ssddanbrown commented on GitHub (Jan 26, 2023): I'm going to therefore close this off as I do feel that a many-parent relation is out of scope for a listing endpoint, but if the alternative `books - get` option as mentioned above would suffice feel free to re-request for that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3449