diff options
author | Arihant Godha <arihant@gitlab.com> | 2019-01-25 15:46:01 +0530 |
---|---|---|
committer | Arihant Godha <arihant@gitlab.com> | 2019-01-25 15:46:01 +0530 |
commit | 94f30513a8c547d928401aa226a13599e630c6f8 (patch) | |
tree | a771d802c71705b8a8a93a8625f56d89f6b12099 | |
parent | b9786e47c4f7bba204e6350b745e9489569d29ab (diff) | |
download | gitlab-ce-patch-32.tar.gz |
Made required changes based on the MR 23432 discussionpatch-32
-rw-r--r-- | doc/api/repositories.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md index 2dfffb76e20..1036d54fefa 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -120,9 +120,11 @@ 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: 9koXpg98eAheJpvBs5tK" https://gitlab.com/api/v4/projects/<project_id>/repository/archive?sha=abcdef -``` + + ```sh + curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.com/api/v4/projects/<project_id>/repository/archive?sha=abcdef + ``` + ## Compare branches, tags or commits This endpoint can be accessed without authentication if the repository is |