search project environments via gitlab api
Problem to solve
I want to search project environments via gitlab api.
Intended users
Developer.
Further details
Now we create project environments dynamically in gitlab CI deploy stage(for MRs). And we need to close the outdated environments via gitlab hooks(when close or merge MRs).
But I cannot find "environment" search scope (in search api) nor search param (in environment api). As environment LIST api is pagable, it's hard for me to find a specific environment.
By the way, it takes me much time to find the page param since the environments api docs hasn't told me about that.
Proposal
- add an search scope in search api
- or add an search param in environments list api