From 77676d18c8073c405017ad78d1d28dc23fbc5a20 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 25 Feb 2019 03:30:22 +0900 Subject: [PATCH] Improve doc --- src/server/api/endpoints/stats.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/server/api/endpoints/stats.ts b/src/server/api/endpoints/stats.ts index fa67ce25f..30c49cdd8 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.', + }, + } } };