Interface FileApi
-
public interface FileApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LastModifiedlastModified(String project, String repo, String path, String branchOrTag)FilesPagelistFiles(String project, String repo, String path, String branchOrTag, Integer start, Integer limit)LinePagelistLines(String project, String repo, String filePath, String branchOrTag, Boolean type, Boolean blame, Boolean noContent, Integer start, Integer limit)RawContentraw(String project, String repo, String filePath, String branchOrTag)CommitupdateContent(String project, String repo, String filePath, String branch, String content, String message, String sourceCommitId, String sourceBranch)
-
-
-
Method Detail
-
raw
@Named("file:raw-content") @Produces("application/json") @Consumes("text/plain") @Path("/projects/{project}/repos/{repo}/raw/{filePath}") @GET RawContent raw(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("filePath") String filePath, @Nullable @QueryParam("at") String branchOrTag)
-
listLines
@Named("file:list-lines") @Produces("application/json") @Consumes("application/json") @Path("/rest/api/{jclouds.api-version}/projects/{project}/repos/{repo}/browse/{filePath}") @GET LinePage listLines(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("filePath") String filePath, @Nullable @QueryParam("at") String branchOrTag, @Nullable @QueryParam("type") Boolean type, @Nullable @QueryParam("blame") Boolean blame, @Nullable @QueryParam("noContent") Boolean noContent, @Nullable @QueryParam("start") Integer start, @Nullable @QueryParam("limit") Integer limit)
-
updateContent
@Named("file:update-content") @Consumes("application/json") @Path("/rest/api/{jclouds.api-version}/projects/{project}/repos/{repo}/browse/{filePath}") @PUT Commit updateContent(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("filePath") String filePath, @FormParam("branch") String branch, String content, @Nullable @FormParam("message") String message, @Nullable @FormParam("sourceCommitId") String sourceCommitId, @Nullable @FormParam("sourceBranch") String sourceBranch)
-
listFiles
@Named("file:list-files") @Produces("application/json") @Consumes("application/json") @Path("/rest/api/{jclouds.api-version}/projects/{project}/repos/{repo}/files/{path}") @GET FilesPage listFiles(@PathParam("project") String project, @PathParam("repo") String repo, @Nullable @PathParam("path") String path, @Nullable @QueryParam("at") String branchOrTag, @Nullable @QueryParam("start") Integer start, @Nullable @QueryParam("limit") Integer limit)
-
lastModified
@Named("file:last-modified") @Produces("application/json") @Consumes("application/json") @Path("/rest/api/{jclouds.api-version}/projects/{project}/repos/{repo}/last-modified/{path}") @GET LastModified lastModified(@PathParam("project") String project, @PathParam("repo") String repo, @Nullable @PathParam("path") String path, @QueryParam("at") String branchOrTag)
-
-