aboutsummaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorrr-2016-06-03 21:18:17 +0200
committerrr-2016-06-03 21:46:25 +0200
commitcaecaee7856a818cc0ee45dc45a335a3b3a25af6 (patch)
treec556800c8ea50f849efaf020354a9e5c8aab935c /API.md
parentaa95afb989b4caf0fc6f5de3b07907790e84da16 (diff)
server/users: offer more stats in user entity
Diffstat (limited to 'API.md')
-rw-r--r--API.md28
1 files changed, 21 insertions, 7 deletions
diff --git a/API.md b/API.md
index 1257c14..1a6a6d9 100644
--- a/API.md
+++ b/API.md
@@ -1391,13 +1391,18 @@ A single user.
```json5
{
- "name": <name>,
- "email": <email>,
- "rank": <rank>,
- "lastLoginTime": <last-login-time>,
- "creationTime": <creation-time>,
- "avatarStyle": <avatar-style>,
- "avatarUrl": <avatar-url>
+ "name": <name>,
+ "email": <email>,
+ "rank": <rank>,
+ "lastLoginTime": <last-login-time>,
+ "creationTime": <creation-time>,
+ "avatarStyle": <avatar-style>,
+ "avatarUrl": <avatar-url>,
+ "commentCount": <comment-count>,
+ "uploadedPostCount": <uploaded-post-count>,
+ "likedPostCount": <liked-post-count>,
+ "dislikedPostCount": <disliked-post-count>,
+ "faoritevPostCount": <favorite-post-count>
}
```
@@ -1427,6 +1432,15 @@ A single user.
- `"manual"`: the user has uploaded a picture manually.
- `<avatarUrl>`: the URL to the avatar.
+- `<comment-count>`: number of comments.
+- `<uploaded-post-count>`: number of uploaded posts.
+- `<liked-post-count>`: nubmer of liked posts. It is available only if the
+ request is authenticated by the same user. If it's unavailable, the server
+ returns `false`.
+- `<disliked-post-count>`: number of disliked posts. It is available only if
+ the request is authenticated by the same user. If it's unavailable, the
+ server returns `false`.
+- `<favorite-post-count>`: number of favorited posts.
## Micro user
**Description**

© 2015 - 2026 Jakob L. Kreuze