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

Add the ability for clients to limit recursion depth to reduce response sizes #200

Closed
wants to merge 2 commits into from

Conversation

Andrew-Dickinson
Copy link
Member

The chonker of a response object introduced in #199 made me think that some clients are going to want the ability to limit the depth of the recursion in the object they receive, this PR adds a ?max_recursion_depth parameter available on any of the endpoints that are backed by RecursiveSerializer which can be optionally used to limit the depth if the caller is only interested in shallower data fields

@Andrew-Dickinson Andrew-Dickinson added the API Issues related to the API we expose for other applications label Feb 16, 2024
@Andrew-Dickinson Andrew-Dickinson changed the base branch from andrew/link-and-sector-endpoints to main February 16, 2024 05:25
@Andrew-Dickinson Andrew-Dickinson force-pushed the andrew/recursion-depth-limit branch from dfc956b to 4a1094e Compare February 16, 2024 05:37
@Andrew-Dickinson Andrew-Dickinson deleted the andrew/recursion-depth-limit branch July 27, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to the API we expose for other applications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant