Web API for querying branch status

web_api
branches
sonarqube

(Andrews) #1

Hey,
I want the details of a branch(mainly long-lived) in a JSON file, the details being, code coverage, bugs, vulnerabilities, code smells, et cetera.
Do we have any API that could help me or is there a way by which I can get these values and later bind it in a JSON file?

Thanks,
Andrew


[API] project_status and branches
(Nicolas Bontoux) #2

Yup, WebAPI is your friend ! Native branch support is recent so the branch parameter is currently internal, but you may give it a go already (knowing that it may evolve in future versions). Just hit Show Internal API on the WebAPI documentation (embedded in your own server, linked at the footer), and check-out:

  • api/issues/search for any issue-related data (see branch parameter)
  • api/measures/component for measure data (see branch parameter)

Search issues on branch for bulk update
(Andrews) #4

Thanks Nicolas. However Hi, Hello would have been appreciated on my part.

Andrew