diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-07-09 08:44:19 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-07-09 08:44:19 +0000 |
commit | b9e52612feb4956f0b3cc26af0f98810e67a5287 (patch) | |
tree | d9b851e9ef3e50cdb7e4ad181d5313666a17e0fe /doc/api/users.md | |
parent | 9d079194652b94c7cf9d94b4c757ffa1fcdfbcf1 (diff) | |
download | gitlab-ce-b9e52612feb4956f0b3cc26af0f98810e67a5287.tar.gz |
Updates on success of an MR the count on top and in other tabs
New API endpoint for merge request count
Updates all open tabs at the same time with one call
Restructured API response
API response changed to 401 if no current_user
Added API + JS specs
Fix for Static Check
Updated Count on Open/Close, Assign/Unassign of MR's
Checking if MR Count is refreshed
Added # frozen_string_literal: true to spec
Added Changelog
Diffstat (limited to 'doc/api/users.md')
-rw-r--r-- | doc/api/users.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index 884a02dd2bf..213d1865aca 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -593,6 +593,30 @@ Example responses } ``` +## User counts + +Get the counts (same as in top right menu) of the currently signed in user. + +| Attribute | Type | Description | +| --------- | ---- | ----------- | +| `merge_requests` | number | Merge requests that are active and assigned to current user. | + +``` +GET /user_counts +``` + +```bash +curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/user_counts" +``` + +Example response: + +```json +{ + "merge_requests": 4 +} +``` + ## List user projects Please refer to the [List of user projects](projects.md#list-user-projects). |