public class GitLabAPIRepositories extends Object
http://doc.gitlab.com/ce/api/repositories.html
| Constructor and Description |
|---|
GitLabAPIRepositories(GitLabAPI gitLabAPI) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getRawFileContent(Serializable projectId,
String sha,
String filepath)
Raw file content
|
Paged<GitLabRepositoryTree> |
getRepositoryTrees(Serializable projectId,
Pagination pagination,
String path,
String refName)
List repository tree
|
public GitLabAPIRepositories(GitLabAPI gitLabAPI)
public Paged<GitLabRepositoryTree> getRepositoryTrees(Serializable projectId, Pagination pagination, String path, String refName) throws IOException
Get a list of repository files and directories in a project.
GET /projects/:id/repository/tree Parameters:
projectId - (required) - The ID of a projectpagination - (optional) - number of projects to return per pagepath - (optional) - The path inside repository. Used to get contend of subdirectoriesrefName - (optional) - The name of a repository branch or tag or if not given the default branchIOExceptionpublic byte[] getRawFileContent(Serializable projectId, String sha, String filepath) throws IOException
Get the raw file contents for a file by commit SHA and path.
GET /projects/:id/repository/blobs/:sha
projectId - (required) - The ID of a projectsha - (required) - The commit or branch namefilepath - (required) - The path the fileIOExceptionCopyright © 2017 Talanlabs. All rights reserved.