-
Notifications
You must be signed in to change notification settings - Fork 8
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
Get documents by ids #324
Comments
Just to clarify, the new
If it's really necessary to filter the documents by multiple ids, what is the preferred way for you to pass them? As GET-parameters, e.g. |
Ah yes, it does, sorry and thanks! Didn't know about that. I think it is necessary to filter by multiple ids. Query params would be my preferred way to do so. Is there documentation for the endpoints somewhere already? |
Alright! @lukasboehm97 I think we should decide on a single source of truth, keep that one up to date and remove all other documentations. |
Ideally we would get our sphinx documentation up-to-date and keep it as single point of truth |
Summary of To-Do's regardings this issue:
|
Motivation
For several purposes like favorites we need to save documents in the app. While saving the whole documents is of course possible, there is no way of updating these if e.g. images, alternatives or the words of a document is changed. Fur us the better alternative would be to just save document ids and request the actual documents using a cms endpoint.
Proposed Solution
Implement an endpoint accepting one or multiple document ids and returns an array of the corresponding documents. If an id does not point to a valid document (anymore), the request should not fail but instead just not return a document for that id.
Alternatives
Additional Context
Corresponding app issue: https://issues.tuerantuer.org/browse/LUN-307
The text was updated successfully, but these errors were encountered: