sonar runner - SonarQube Web Api Changes from 6.0 to 6.4 -


i using "http://sonarserver:9000/api/resources?metrics=ncloc,bugs,vulnerabilities" details of projects sonar 6.0.

after upgrading 6.4 url not work , not able find alternative under web_api changes page.

please let me know if knows alternative this.

error: {"errors":[{"msg":"unknown url : /api/resources"}]}

per webapi documentation (embedded in own sonarqube server, linked @ footer): api/resources/index deprecated since 5.4 (i.e. super long time ago).

the documentation provides guidance:

if need 1 component measures: api/measures/component

that measures need given project. can use other apis list of projects (e.g. api/components/search). see web api docs full listing of possibilities.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -