summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/endpoints/stats.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts
index fa67ce25fc..30c49cdd86 100644
--- a/src/server/api/endpoints/stats.ts
+++ b/src/server/api/endpoints/stats.ts
@@ -13,6 +13,32 @@ export const meta = {
tags: ['meta'],
params: {
+ },
+
+ res: {
+ type: 'object',
+ properties: {
+ notesCount: {
+ type: 'number',
+ description: 'The count of all (local/remote) notes of this instance.',
+ },
+ originalNotesCount: {
+ type: 'number',
+ description: 'The count of all local notes of this instance.',
+ },
+ usersCount: {
+ type: 'number',
+ description: 'The count of all (local/remote) accounts of this instance.',
+ },
+ originalUsersCount: {
+ type: 'number',
+ description: 'The count of all local accounts of this instance.',
+ },
+ instances: {
+ type: 'number',
+ description: 'The count of federated instances.',
+ },
+ }
}
};