How to get all rules with specitic severity via SonarQube API?
<p>My company needs all rules we are using as a pdf or csv file. There are several other threads here on SO asking similar question <strong>but most of them do not work, as the links are dead or anything else</strong>.</p>

<p>I came across using the web API, but it simply does not work. </p>

<p>The REST GET I tried was this one:</p>

<pre><code>/api/rules/search?language=java&amp;severity=BLOCKER
</code></pre>

<p>and</p>

<pre><code>/api/rules/search?language=java&amp;priorities=BLOCKER
</code></pre>

<p>as there are inconsistencies in the documentation. </p>

<p>Most of the rules I get are <code>MAJOR</code> and some of them are <code>CRITICAL</code>, but not a single <code>BLOCKER</code>, which is the only severity I need.</p>

<p>So how can I only get the BLOCKER rules?</p>