Projects API: Add `topic_id` attribute
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.
/cc @bufferoverflow
How to set up and validate locally
- Add some projects and assign topics
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mayra Cabrera