Expose project avatar via API
requested to merge 25498-can-t-fetch-a-private-project-avatar-badge-anymore-with-a-private_token into master
What does this MR do and why?
Based on the #25498 (closed) and the proposed solution, we are introducing a new endpoint that allows users to download a project's avatar using the following endpoint:
GET /projects/:id/avatar
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Checkout the branch
- Using the
GET /projects/:id/avatar
endpoint, download a project avatar - Verify that works for public projects as well without providing auth token
Related to #25498 (closed)
Edited by Bojan Marjanovic