Project API should return the same data as returned by UI via JSON
Problem to solve
Working with a customer who is trying to grab project data from our API. We can get the data from the UI when requesting Pipeline JSON output but not the same output from the API. Specifically, https://gitlab.com/<group>/<project>/pipelines/<id>.json
has a section under "triggered_by":
with output such as "project": {"id": <id>,"name": "<name>"}
. This data should also be availabe at https://gitlab.com/api/v4/projects/<project>/pipelines/<id>
.
Intended users
Developers and those working with CI/CD, multi-project pipelines, and triggers.
Further details
See related issues for customer use case.
Proposal
Output as much of the same data in https://gitlab.com/api/v4/projects/<project>/pipelines/<id>
as https://gitlab.com/<group>/<project>/pipelines/<id>.json
Permissions and Security
No permissions changes
Documentation
Update API documentation to include the newly outputted variables/data.
Testing
Minimal risk is expected and testing should not be impacted. The data being output should be close to the same as what already is available via JSON.
What does success look like, and how can we measure that?
Pipeline API outputs the same data as the UI outputs JSON data.