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

Adding support for 'minified' parameter when fetching a library's items #3945

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

r0adkll
Copy link

@r0adkll r0adkll commented Feb 6, 2025

Brief summary

This PR attempts to fix the issue where the /api/libraries/<id>/items endpoint only returns minified library items.

Which issue is fixed?

Fixes #2123

In-depth Description

This endpoint currently just maps all library items toOldJSONMinified() regardless of the minified parameter sent in the request. This change checks the parameter and maps to either the minified, or the toOldJSONExpanded().

How have you tested this?

Tested by running locally through API test client with both response prior, and response after (with minified=1) and then with minified=0.

Also verified that change didn't affect web / mobile clients

Screenshots

n/a

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

Successfully merging this pull request may close these issues.

1 participant