API to query all issues of a project

Hi,

This post mentions an endpoint in SonarQube 9.1 to query all issues of a project: /api/projects/export_findings

I cannot find it in the documentation. Does anyone know if that endpoint still exist in SonarQube 10?

Hi,

using Sonarqube 10.5.1 Enterprise latest, this endpoint doesn’t exist anymore.
You may use /api/issues/pull instead, see https://<yoursonarhost>/web_api/api/issues/pull?internal=true

This endpoint fetches and returns all (unless filtered by optional params) the issues for a given branch. The issues returned are not paginated, so the response size can be big. Requires project ‘Browse’ permission.

AFAIR for /api/projects/export_findings the branch was optional with main as default,
now the branch is required.

Gilbert

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