Skip to content

feat: add optional "include" query parameter#290

Open
mihailkitrozoskicodechem wants to merge 1 commit intomainfrom
feature/add-include-query-parameter
Open

feat: add optional "include" query parameter#290
mihailkitrozoskicodechem wants to merge 1 commit intomainfrom
feature/add-include-query-parameter

Conversation

@mihailkitrozoskicodechem
Copy link
Collaborator

What Changed?

Implemented control on which related entities to included in API responses by specifying them in the query parameter.

Why?

This feature was added to improve API performance and flexibility by letting clients request only the related data they need, reducing unnecessary data transfer.

Closes #266

Type of Change

  • 🐛 Bug fix (fixes an issue without breaking existing functionality)
  • ✨ New feature (adds new functionality without breaking existing features)
  • 💥 Breaking change (existing functionality will be affected)
  • 📝 Documentation update
  • 🔧 Maintenance (refactoring, dependencies, configuration)

How Did You Test This?

What I tested:

  • [ ]
  • [ ]

How to test it:

Review Checklist

  • My code follows the project's style and conventions
  • I've reviewed my own code for obvious issues
  • I've added comments where the code might be confusing
  • I've updated relevant documentation (if needed)
  • I've tested my changes and they work as expected

Screenshots / Additional Context

@mihailkitrozoskicodechem mihailkitrozoskicodechem changed the title feature/ add "include" Query Parameter feature: add optional "include" query parameter Feb 3, 2026
@mihailkitrozoskicodechem mihailkitrozoskicodechem changed the title feature: add optional "include" query parameter feat: add optional "include" query parameter Feb 3, 2026
context.HttpContext.Items[IncludeParamsKey] = includeTree;
}

private static void AddSegmentsRecursive(IDictionary<string, IncludeNode> nodes, IReadOnlyList<string> segments, int index)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probable remove "Recursive" from the method name since it's not a recursive method anymore.

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.

Add "include" Query Parameter

2 participants