title: sonarqube: webservice api to get the most violated rules, most violated files and cyclomatic complexity
body: <p>Is there a way to get the most violated rules, most violated files and cyclomatic complexity for a project via webservice api?</p>
  
  <p>I tried the below url</p>
  
  <pre><code>http://localhost:9000/api/resources?resource=xyz&amp;metrics=rules_violations&amp;limit=5&amp;filter_rules=false&amp;filter_rules_cats=true&amp;limit=5&amp;format=xml
  </code></pre>
  
  <p>But it doesnt seem to work, please let me know if any of you folks are aware of it</p>