From 27912f9c21c3dfb20f8d1d037f8c085281de5b0e Mon Sep 17 00:00:00 2001 From: Thom Gerdes Date: Mon, 23 Dec 2013 01:37:38 -0800 Subject: 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 --- doc/api/repositories.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'doc/api') 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 -- cgit v1.2.1