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>2020-12-08 12:09:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-08 12:09:41 +0300
commit707742e59ca57d1f2ea00d65fa35a7b9a5ded398 (patch)
tree8dcb287cd941eab2acf6d62de519d1e915686175 /doc/api/README.md
parenta0834ebcaa12d126a20e07b6502121e1dc58c9b9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/README.md')
-rw-r--r--doc/api/README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/README.md b/doc/api/README.md
index 63bccbddb50..dced721b018 100644
--- a/doc/api/README.md
+++ b/doc/api/README.md
@@ -107,7 +107,7 @@ curl: (22) The requested URL returned error: 404
```
The HTTP exit code can help you diagnose the success or failure of your REST call.
-
+
## Authentication
Most API requests require authentication, or only return public data when
@@ -591,7 +591,7 @@ We can call the API with `array` and `hash` types parameters as follows:
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
-d "import_sources[]=github" \
-d "import_sources[]=bitbucket" \
-https://gitlab.example.com/api/v4/some_endpoint
+"https://gitlab.example.com/api/v4/some_endpoint"
```
### `hash`
@@ -605,7 +605,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \
--form "file=@/path/to/somefile.txt"
--form "override_params[visibility]=private" \
--form "override_params[some_other_param]=some_value" \
-https://gitlab.example.com/api/v4/projects/import
+"https://gitlab.example.com/api/v4/projects/import"
```
### Array of hashes