diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-03-01 17:22:29 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-03-07 21:15:47 -0300 |
commit | 9053d78e7451d5358b0ec66788916a488ce66a00 (patch) | |
tree | 07739e0baebed7caf0a3509dc18dd206bcdbec90 /doc/api/repositories.md | |
parent | 7f2819b778b055278a7fafe9c782d12d09dbd2ea (diff) | |
download | gitlab-ce-9053d78e7451d5358b0ec66788916a488ce66a00.tar.gz |
Update API endpoints for raw files
Diffstat (limited to 'doc/api/repositories.md')
-rw-r--r-- | doc/api/repositories.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md index ddd11bb2a14..1471be7fc1c 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -72,10 +72,11 @@ Parameters: ] ``` -## Raw file content +## Get file from repository -Get the raw file contents for a file by commit SHA and path. This endpoint can -be accessed without authentication if the repository is publicly accessible. +Allows you to receive information about file in repository like size and +content. Note that file content is Base64 encoded. This endpoint can be accessed +without authentication if the repository is publicly accessible. ``` GET /projects/:id/repository/blobs/:sha @@ -85,7 +86,6 @@ Parameters: - `id` (required) - The ID of a project - `sha` (required) - The commit or branch name -- `filepath` (required) - The path the file ## Raw blob content @@ -93,7 +93,7 @@ Get the raw file contents for a blob by blob SHA. This endpoint can be accessed without authentication if the repository is publicly accessible. ``` -GET /projects/:id/repository/raw_blobs/:sha +GET /projects/:id/repository/blobs/:sha/raw ``` Parameters: |