summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar Sleep <don@kuntz.co>2023-01-11 04:36:36 -0600
committerLibravatar GitHub <noreply@github.com>2023-01-11 11:36:36 +0100
commit3512325e4647fc76e6ce82ea44e2a321a0809451 (patch)
tree155643e96f98e66fac369a879317bb7e0b1efd31 /docs/api
parent[feature] Implement Report database model and utility functions (#1310) (diff)
downloadgotosocial-3512325e4647fc76e6ce82ea44e2a321a0809451.tar.xz
[feature] Add local user and post count to nodeinfo responses (#1325)
* Add local user and post count to nodeinfo responses This fixes #1307 (at least partially). The nodeinfo endpoint should now return the total users on an instance, along with their post count. * Update NodeInfoUsers docstring and swagger yaml file
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index a900a31d5..b3a75d177 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -100,13 +100,22 @@ definitions:
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
NodeInfoUsage:
properties:
+ localPosts:
+ format: int64
+ type: integer
+ x-go-name: LocalPosts
users:
$ref: '#/definitions/NodeInfoUsers'
title: NodeInfoUsage represents usage information about this server, such as number of users.
type: object
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
NodeInfoUsers:
- title: NodeInfoUsers is a stub for usage information, currently empty.
+ properties:
+ total:
+ format: int64
+ type: integer
+ x-go-name: Total
+ title: NodeInfoUsers represents aggregate information about the users on the server.
type: object
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
Source: