Staging
v0.4.1

Description

Get statistics about the content of the archive.

Request

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

Response

Body
{
    "content": 1139736612,
    "directory": 982900341,
    "origin": 8305901,
    "origin_visit": 60881251,
    "person": 3669800,
    "release": 34709206,
    "revision": 223213219,
    "skipped_content": 39521,
    "snapshot": 8175677
}

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