Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom Gerdes <thom.gerdes@gmail.com>2013-12-23 13:37:38 +0400
committerThom Gerdes <thom.gerdes@gmail.com>2013-12-26 17:54:13 +0400
commit27912f9c21c3dfb20f8d1d037f8c085281de5b0e (patch)
tree9eb3f60ab873ecaebee11d3c171f58d258f2952d /doc/api/repositories.md
parentb27bd2b10d08e16663d6554d11e0eeef708a87d5 (diff)
Add api support for raw blob search
See issue http://feedback.gitlab.com/forums/176466-general/suggestions/4566001-expose-raw-object-search-via-the-gitlab-api
Diffstat (limited to 'doc/api/repositories.md')
-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