Ilya Shakhat 4f2ed5141b Added dummy docs, build process updated
Part of blueprint api-docs

Change-Id: I372b03341b5576db68175888df6044cfe6730e41
2013-08-30 19:47:44 +04:00

2.0 KiB

Stackalytics JSON API v1.0

Note

JSON API v1.0 corresponds to Stackalytics v0.2.X

1 General API information

This section contains base info about the Stackalytics JSON API design.

1.2 Request / Response Types

The Stackalytics API supports the JSON data serialization format. This means that for requests that contain a body, the Content-Type header must be set to the MIME type value "application/json". Also, clients should accept JSON serialized responses by specifying the Accept header with the MIME type value "application/json" or adding ".json" extension to the resource name. The default response format is "application/json" if the client omits to specify an Accept header or append the ".json" extension in the URL path.

Example:

GET /v1.0/data/companies.json

or

GET /v1.0/data/companies
Accept: application/json

1.3 Faults

The Stackalytics API returns an error response if a failure occurs while processing a request. Stackalytics uses only standard HTTP error codes. 4xx errors indicate problems in the particular request being sent from the client and 5xx errors indicate server-side problems.

2 Metrics

Description

Get different metrics.

Plugins ops

Verb URI Description
GET /v1.0/data/companies Contribution by companies.