Help using REST APIs

I’m wanting to start generating some reports on projects in our sonarqube. But I’m having trouble finding what I need from the Web API docs.

The first thing I’d like to do is be able to report, for every project, what quality gate (and what rules) are enabled. So, I’m looking for:

  1. List all projects (I see search, I presume that’s what I’d use?)
  2. Given a project, I need to know what the quality gate is. I didn’t see this in the example payload for projects GET

I think that’s where I’m stuck right now. I’ll keep playing with it and see if I can figure it out.

OK, I think I got it. I can get all projects with search (no params) and page through results. I can then get quality gate for that project, and get details of that quality gate.

All set!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.