summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArihant <arihantar@gmail.com>2018-12-04 11:09:36 +0000
committerHarish Ramachandran <harish@gitlab.com>2018-12-12 10:13:00 -0500
commitfcdf2acf462ffd5ab6ec60aeaa692c946d1e4cf0 (patch)
tree8d0e0a4c915b7a9f02f413f793d316925a2b0051
parent157e971c04d5cb3d1f1aac51db297839379efe81 (diff)
downloadgitlab-ce-patch-32-testing-rebase.tar.gz
Made the required changes.mdpatch-32-testing-rebase
-rw-r--r--doc/api/repositories.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index 0bdd72b54f3..159f5d7e950 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -119,7 +119,10 @@ would send an archive in ZIP format.
Parameters:
- `id` (required) - The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
-- `sha` (optional) - The commit SHA to download. A tag, branch reference or sha can be used. This defaults to the tip of the default branch if not specified. For example: `curl --header "PRIVATE-TOKEN: <private_token>" https://gitlab.com/api/v4/projects/<project_id>/repository/archive?sha=abcdef `
+- `sha` (optional) - The commit SHA to download. A tag, branch reference, or SHA can be used. This defaults to the tip of the default branch if not specified. For example:
+```
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.com/api/v4/projects/<project_id>/repository/archive?sha=abcdef
+```
- `format` (optional) - The archive format. Default is `tar.gz`. Options are `tar.gz`, `tar.bz2`, `tbz`, `tbz2`, `tb2`, `bz2`, `tar`, `zip`
## Compare branches, tags or commits