Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/stat.py
Show All 33 Lines | .. http:get:: /api/1/stat/counters/ | ||||
(aka commits) in the archive | (aka commits) in the archive | ||||
:>json number skipped_content: current number of content objects | :>json number skipped_content: current number of content objects | ||||
(aka files) which where not inserted in the archive | (aka files) which where not inserted in the archive | ||||
:>json number snapshot: current number of snapshot objects | :>json number snapshot: current number of snapshot objects | ||||
(aka set of named branches) in the archive | (aka set of named branches) in the archive | ||||
{common_headers} | {common_headers} | ||||
**Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, | |||||
:http:method:`options` | |||||
:statuscode 200: no error | :statuscode 200: no error | ||||
**Example:** | **Example:** | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
:swh_web_api:`stat/counters/` | :swh_web_api:`stat/counters/` | ||||
""" | """ | ||||
return service.stat_counters() | return service.stat_counters() |