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:
authorEvan Read <eread@gitlab.com>2018-12-04 03:09:44 +0300
committerEvan Read <eread@gitlab.com>2018-12-04 03:09:44 +0300
commit2b2f93698b4f479d673067caa384b604732852e4 (patch)
tree53c0b701a8b5d3e5ec88d9c09eaaae4985b2b09c
parent3b44b2f3124b9bca943007e11939dfa7c49ea5cf (diff)
parentc27c9827bc77565f9de40d403b05ce5b5ec22106 (diff)
Merge branch 'sh-update-api-archive-docs' into 'master'
Fix documentation for /api/v4/projects/:id/repository/archive Closes #45992 See merge request gitlab-org/gitlab-ce!23501
-rw-r--r--doc/api/repositories.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index c8de7f2191d..55f5a4cc3b2 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -108,14 +108,18 @@ Get an archive of the repository. This endpoint can be accessed without
authentication if the repository is publicly accessible.
```
-GET /projects/:id/repository/archive
+GET /projects/:id/repository/archive[.format]
```
+`format` is an optional suffix for the archive format. Default is
+`tar.gz`. Options are `tar.gz`, `tar.bz2`, `tbz`, 'tbz2`, `tb2`,
+`bz2`, `tar`, and `zip`. For example, specifying `archive.zip`
+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
-- `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