summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-29 01:55:27 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-29 01:55:27 -0800
commita4000f5d45110f219840b8127fd272930e0798e8 (patch)
tree0963679ae978fa75c4460c374350eb5b92e70e92 /doc
parentbd49d8dfa78cf538885726e28e989a2af97703fa (diff)
parent27912f9c21c3dfb20f8d1d037f8c085281de5b0e (diff)
downloadgitlab-ce-a4000f5d45110f219840b8127fd272930e0798e8.tar.gz
Merge pull request #5920 from tgerdes/raw_blob_api
Add api support for raw blob search
Diffstat (limited to 'doc')
-rw-r--r--doc/api/repositories.md18
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