Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 06:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 06:10:22 +0300
commitbd02c91f731fd4a02fd44f72b06f6e5f33625065 (patch)
tree7f5e7d2d55909123785019285d90de06d5eb7ba6 /doc/api/users.md
parentbf5cf27dfbe4e4cfb58d46cea9f14b81f5559fb5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/users.md')
-rw-r--r--doc/api/users.md28
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index 3396b3fab38..0e7b197b106 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -453,7 +453,6 @@ Parameters:
| `twitter` | No | Twitter account |
| `username` | Yes | Username |
| `view_diffs_file_by_file` | No | Flag indicating the user sees only one file diff per page |
-| `show_whitespace_in_diffs` | No | Flag indicating the user sees whitespace changes in diffs
| `website_url` | No | Website URL |
## User modification
@@ -694,6 +693,29 @@ Example response:
}
```
+## Get user preferences
+
+Get a list of currently authenticated user's preferences.
+
+```plaintext
+GET /user/preferences
+```
+
+Example response:
+
+```json
+{
+ "id": 1,
+ "user_id": 1
+ "view_diffs_file_by_file": true,
+ "show_whitespace_in_diffs": false
+}
+```
+
+Parameters:
+
+- **none**
+
## User preference modification
Update the current user's preferences.
@@ -706,7 +728,8 @@ PUT /user/preferences
{
"id": 1,
"user_id": 1
- "view_diffs_file_by_file": true
+ "view_diffs_file_by_file": true,
+ "show_whitespace_in_diffs": false
}
```
@@ -715,6 +738,7 @@ Parameters:
| Attribute | Required | Description |
| :--------------------------- | :------- | :---------------------------------------------------------- |
| `view_diffs_file_by_file` | Yes | Flag indicating the user sees only one file diff per page. |
+| `show_whitespace_in_diffs` | Yes | Flag indicating the user sees whitespace changes in diffs. |
## Set user status