Generic API list filtering

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Description

Currently each API endpoint that returns a list of objects has separate filters (often incomplete) inplemented. Implementing a generic strategy will immediately allow for increased functionality, optimizing specific endpoints to use the filters can then be done later.

I think a first implementation could just filter the JSON objects before returning them, improvements could then be made to only construct them based on filter criteria.

Proposal

Implement a generic filter syntax that works on all API endpoints that return list of objects.

Links / references

Issues with label api related to filtering: gitlab-ce#25183 gitlab-ce#24175 gitlab-ce#23244 gitlab-ce#20455 gitlab-ce#18898 gitlab-ce#17545 gitlab-ce#18499

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading