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
path: root/doc/api
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2018-09-05 03:38:03 +0300
committerEvan Read <eread@gitlab.com>2018-09-05 03:38:03 +0300
commit2a8f094105a3b2dbf166043e170f10fcda259f33 (patch)
tree8a3ee4536b2550c8671fe921afb1a771770daaac /doc/api
parentc38f0e9c95416022a28a22e63454cca316ddc81f (diff)
Fix content to align with style guide.
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/README.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/api/README.md b/doc/api/README.md
index e0f18a41f95..ef4bb3fbd29 100644
--- a/doc/api/README.md
+++ b/doc/api/README.md
@@ -219,7 +219,8 @@ Impersonation tokens are used exactly like regular personal access tokens, and c
### Sudo
-> Needs admin permissions.
+NOTE: **Note:**
+Needs admin permissions.
All API requests support performing an API call as if you were another user,
provided you are authenticated as an administrator with an OAuth or Personal Access Token that has the `sudo` scope.
@@ -447,10 +448,11 @@ curl --request POST --header "PRIVATE-TOKEN: ********************" \
Some resources have two similarly-named fields. For example, [issues](issues.md), [merge requests](merge_requests.md), and [project milestones](milestones.md). The fields are:
-- `id`. ID that is unique across all projects.
-- `iid`. Additional, internal ID that is unique in the scope of a single project.
+- `id`: ID that is unique across all projects.
+- `iid`: additional, internal ID that is unique in the scope of a single project.
-> The `iid` is displayed in the web UI.
+NOTE: **Note:**
+The `iid` is displayed in the web UI.
If a resource has the `iid` field, it is often used instead of `id` to fetch the resource.
@@ -459,7 +461,8 @@ For example, suppose a project with `id: 42` has an issue with `id: 46` and `iid
- A valid API call to retrieve the issue is `GET /projects/42/issues/5`
- An invalid API call to retrieve the issue is `GET /projects/42/issues/46`.
-> Not all resources with the `iid` field are fetched by `iid`.
+NOTE: **Note:**
+Not all resources with the `iid` field are fetched by `iid`.
## Data validation and error reporting