Commit 8ef6e10c authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'patch-32' into 'master'

Added example for get file archive

See merge request gitlab-org/gitlab-ce!23432
parents 633e9f31 3ad8021e
...@@ -119,7 +119,11 @@ would send an archive in ZIP format. ...@@ -119,7 +119,11 @@ would send an archive in ZIP format.
Parameters: Parameters:
- `id` (required) - The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user - `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 - `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:
```sh
curl --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.com/api/v4/projects/<project_id>/repository/archive?sha=<commit_sha>
```
## Compare branches, tags or commits ## Compare branches, tags or commits
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment