api: add getStats() function

This commit is contained in:
Chocobozzz 2020-04-01 10:57:43 +02:00 committed by muxator
parent eb45934788
commit 82b919fc65
3 changed files with 49 additions and 2 deletions

View file

@ -65,7 +65,7 @@ Portal submits content into new blog post
## Usage
### API version
The latest version is `1.2.13`
The latest version is `1.2.14`
The current version can be queried via /api.
@ -634,3 +634,14 @@ lists all pads on this epl instance
*Example returns:*
* `{code: 0, message:"ok", data: {padIDs: ["testPad", "thePadsOfTheOthers"]}}`
### Global
#### getStats()
* API >= 1.2.14
get stats of the etherpad instance
*Example returns*
* `{"code":0,"message":"ok","data":{"totalPads":3,"totalSessions": 2,"totalActivePads": 1}}`