Staging
v0.5.1

Description

Get statistics about the content of the archive.

Request

GET https://webapp.staging.swh.network/api/1/stat/counters/?fields=content,directory,revision

Response

Body
{
    "content": 1213616606,
    "directory": 1055664317,
    "revision": 237896988
}

URL Allowed Methods

https://webapp.staging.swh.network/api/1/stat/counters/

GET, HEAD, OPTIONS

Request headers

Accept

the requested response content type, either application/json (default) or application/yaml


Response headers

Content-Type

this depends on Accept header of request


Returns

object

an object containing the following keys:

  • content (number): current number of content objects (aka files) in the archive

  • directory (number): current number of directory objects in the archive

  • origin (number): current number of software origins (an origin is a "place" where code source can be found, e.g. a git repository, a tarball, ...) in the archive

  • origin_visit (number): current number of visits on software origins to fill the archive

  • person (number): current number of persons (code source authors or committers) in the archive

  • release (number): current number of releases objects in the archive

  • revision (number): current number of revision objects (aka commits) in the archive

  • skipped_content (number): current number of content objects (aka files) which where not inserted in the archive

  • snapshot (number): current number of snapshot objects (aka set of named branches) in the archive


HTTP status codes

200

no error


Examples

/api/1/stat/counters/
back to top