Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Table of Contents

This page lists all the available Web Services to be used by any HTTP clients.

Available Web Services

Web Service

Description

Authentication 

Events

This Web Service deals with Events. It offers to:

Favourites

This Web Service deals with Favourites. It offers to:

  • get data from favourites
  • create favourite
  • delete favourite
Installed PluginsThis Web Service offers to list all the plugins installed on the Sonar instance.
Manual Measures

This Web Service deals with Manual Measures. It offers to:

  • get data from manual measures
  • create manual measure
  • delete manual measure
Metrics

This Web Service deals with Metrics. It offers to:

  • get data from metrics
  • create metric
  • update metric
  • delete metric

Project

This Web Service offers to delete a project.

Profiles

This Web Service deals with Quality Profiles. It offers to:

  • get data from quality profiles
  • backup quality profile
  • restore quality profile
Properties

This Web Service deals with Properties. It offers to:

  • get data from properties
  • create property
  • update property
  • delete property
Resources

This Web Service deals with Resources (projects, files, views, etc.). It mainly offers to get measures from resources.

Reviews

This Web Service deals with Reviews. It offers to:

  • get data from reviews
  • create review
  • update review (add comment, reassign it, etc.)
RulesThis Web Service offers to get data from Rules.
Server StatusThis Web Service returns the status of the Sonar server.
SourcesThis Web Service offers to get data from Sources.
System InfoThis Web Service returns system properties, server info (Java, OS), database configuration, JVM statistics and installed plugins.
Time MachineThis Web Services offers to get data from Time Machine.
User Properties

This Web Service deals with User Properties. It offers to:

  • get data from user properties
  • create user property
  • update user property
  • delete user property
Upgrade ServerThis Web Service returns the status of the upgrade of the server.
ViolationsThis Web Service offers to get data from Violations.

Response Formats

The API provides several response formats: XML, JSON (ie. JavaScript Object Notation) and sometimes plain text or CSV.

The request can specify the desired response format using one of the following two ways:

  • Accept HTTP header: application/json, text/xml
  • Query argument 'format' with one of these values: xml, json, txt or csv

HTTP Status Codes

HTTP Code

Description

200

OK

400

Bad request.
The request could not be understood by the server due to malformed syntax.

401

Unauthorized

403

Forbidden.
The request was a legal request, but the server is refusing to respond to it.

404

The requested resource could not be found.

500

Internal server error.

  • No labels