diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/repositories.md | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md index af7b82ca76d..6b3a43b869e 100644 --- a/doc/api/repositories.md +++ b/doc/api/repositories.md @@ -343,9 +343,9 @@ Parameters: ``` -## Raw blob content +## Raw file content -Get the raw file contents for a file. +Get the raw file contents for a file by commit sha and path. ``` GET /projects/:id/repository/blobs/:sha @@ -358,6 +358,20 @@ Parameters: + `filepath` (required) - The path the file +## Raw blob content + +Get the raw file contents for a blob by blob sha. + +``` +GET /projects/:id/repository/raw_blobs/:sha +``` + +Parameters: + ++ `id` (required) - The ID of a project ++ `sha` (required) - The blob sha + + ## Get file archive Get a an archive of the repository |