| Table of Contents |
This page lists all the available Web Services to be used by any HTTP clients.
Available Web Services
Issues
| Web Service | Examples of use cases that can be fulfilled |
|---|---|
| violations | Get a list of violations on a given resource |
| reviews | Get a list of reviews |
| rules | Get a list of rules |
| profiles | Get a list of profiles |
Project Measures
| Web Service | Examples of use cases that can be fulfilled |
|---|---|
| resources (Resource) | Search resources by name |
| resources (Measures) | Get the measures of a list of metrics on a given resource |
| manual_measures | Get a list of manual measures |
| metrics | Get a list of metrics |
| timemachine | Get past measures |
| sources | Get a list of lines from source files |
| events | Get a list of events from a project |
User
| Web Service | Examples of use cases that can be fulfilled |
|---|---|
| user_properties | Get a list of user properties |
| favourites | Get the logged in user's list of favourites |
| authentication | Check authentication |
Administration
| Web Service | Examples of use cases that can be fulfilled |
|---|---|
| projects | Delete a project |
| properties | Get a list of properties |
| server | Get the status of the Sonar server |
| updatecenter/installed_plugins | Get the list of all the plugins installed on the Sonar instance |
Response Formats
The API provides several response formats such as XML, JSON (ie. JavaScript Object Notation) plain text or CSV.
Check the available formats on the page of each web service.
HTTP Status Codes
HTTP Code | Description |
|---|---|
200 | OK |
400 | Bad request. |
401 | Unauthorized |
403 | Forbidden. |
404 | The requested resource could not be found. |
500 | Internal server error. |
Authentication
Use Case | Example Request |
|---|---|
Basic HTTP authentication. |
|

