Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

High Level Stats Summary


Request URI: /fcr:stats

Methods: GET


Status
titleGET
Retrieve summary level repository statistics including:

  • resource count, 
  • binary resource count,
  • binary resource bytes
  • binary resource count by mimetype
  • binary resource bytes by mimetype

Request Headers:

N/A

Request Parameters :

mimetypes: a comma separate list of mimetypes.  Default: none. To include all,  "all".

created-after: include all resources whose creation date is on or after  the specified ISO-8601 timestamp.  e.g. 2022-01-01T12:05:01

updated-before: include all resources whose last updated date is before  the specified ISO-8601 timestamp. e.g. 2022-01-01T12:05:01

Example:

Code Block
curl   http://localhost:8080/rest/fcr:stats?mimetypes=all

Response:

Code Block
{ 
           "object.count": 1000,            
           "binary.count": 950,
		   "binary.bytes": 5023498342, 
           "mimetypes": {
              { 
                "mimetype": "text/plain", 
                "count": 100",
                "bytes": 123423
              },
              ...
           }   
            ...
}

Status:

Status
subtletrue
colourGreen
title200

...