Gitlab branches API is missing search parameter.
Description
At the company we are using gitlab api to resolve a branch name based on a given identifier(ticket number). Currently we are fetching all branches(keeping in mind the pagination limit) and searching for a correct branch. It feels that this is better suited to be done by search.
Proposal
Add possibility to supply a search parameter to branches API endpoint.
as in GET /projects/:id/repository/branches?search=search_term
Links / references
This is possible for the Projects API endpoint: https://docs.gitlab.com/ce/api/projects.html
Branches API doc: https://docs.gitlab.com/ce/api/branches.html