Skip to content

Projects API: Add `topic_id` attribute

Jonas Wälter requested to merge siemens/gitlab:projects-api/topic_id into master

What does this MR do and why?

Using the Projects API, you can list all projects (GET /projects) and use some parameters to filter the list. This MR adds a new topic_id parameter to limit the results to projects with the assigned topic given by the topic_id.

Note: There is already a similar paramter called topic, but it's a comma-separated list of topic names. That's a slightly different use case.

🛠 with at Siemens

/cc @bufferoverflow

How to set up and validate locally

  1. Add some projects and assign topics
  2. List and filter projects using API: http://localhost:3000/api/v4/projects?topic_id=<ID>

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mayra Cabrera

Merge request reports