Skip to content

Expose project avatar via API

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

  1. Checkout the branch
  2. Using the GET /projects/:id/avatar endpoint, download a project avatar
  3. Verify that works for public projects as well without providing auth token

Related to #25498 (closed)

Edited by Bojan Marjanovic

Merge request reports