Add '/api/v1/stats'

This commit is contained in:
Omar Roth 2019-03-05 20:19:02 -06:00
parent 4bf0764a1c
commit 1cd25e2f8e

27
API.md
View File

@ -1,3 +1,30 @@
##### GET `/api/v1/stats`
> Schema:
```javascript
{
"version": String,
"software": {
"name": "invidious",
"version": String,
"branch": String
},
"openRegistrations": Bool,
"usage": {
"users": {
"total": Int32,
"activeHalfyear": Int32,
"activeMonth": Int32
}
},
"metadata": {
"updatedAt": Int64,
"lastChannelRefreshedAt": Int64
}
}
```
##### GET `/api/v1/videos/:id`
> Schema: