diff options
| author | rr- | 2016-06-03 21:18:17 +0200 |
|---|---|---|
| committer | rr- | 2016-06-03 21:46:25 +0200 |
| commit | caecaee7856a818cc0ee45dc45a335a3b3a25af6 (patch) | |
| tree | c556800c8ea50f849efaf020354a9e5c8aab935c /API.md | |
| parent | aa95afb989b4caf0fc6f5de3b07907790e84da16 (diff) | |
server/users: offer more stats in user entity
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -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** |