Add query parameter to API to allow filtering by project short name
For several releng scripts I need to query the projects.eclipse.org API to fetch certain fields (e.g. GitHub repos/orgs, PLs, etc).
In some cases, I only have the project's short name as source data. Right now, in order to get the necessary data, I need to fetch all projects from the API and filter them by short_project_id
. This is a slow operation.
Hence, it would be nice to be able to query the API like this:
curl -sSL https://projects.eclipse.org/api/projects?short_project_id=cbi
And it would return the JSON for the technology.cbi
project.
Bonus points for a fault-tolerant search functionality.