Interface CommentsApi
-
@Produces("application/json") @Path("/rest/api/{jclouds.api-version}/projects") public interface CommentsApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Commentscomment(String project, String repo, int pullRequestId, String comment)Commentscreate(String project, String repo, int pullRequestId, CreateComment createComment)RequestStatusdelete(String project, String repo, int pullRequestId, int commentId, int version)CommentPagefileComments(String project, String repo, int pullRequestId, String pathToFile, Integer start, Integer limit)Deprecated.CommentPagefileComments(String project, String repo, int pullRequestId, String pathToFile, String anchorState, String diffType, String fromHash, String toHash, Integer start, Integer limit)Commentsget(String project, String repo, int pullRequestId, int commentId)
-
-
-
Method Detail
-
comment
@Named("comments:comment") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments") @POST Comments comment(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, String comment)
-
create
@Named("comments:create") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments") @POST Comments create(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, CreateComment createComment)
-
get
@Named("comments:get") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments/{commentId}") @GET Comments get(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, @PathParam("commentId") int commentId)
-
fileComments
@Deprecated @Named("comments:file-comments-deprecated") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments") @GET CommentPage fileComments(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, @QueryParam("path") String pathToFile, @Nullable @QueryParam("start") Integer start, @Nullable @QueryParam("limit") Integer limit)
Deprecated.
-
fileComments
@Named("comments:file-comments") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments") @GET CommentPage fileComments(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, @QueryParam("path") String pathToFile, @Nullable @QueryParam("anchorState") String anchorState, @Nullable @QueryParam("diffType") String diffType, @Nullable @QueryParam("fromHash") String fromHash, @Nullable @QueryParam("toHash") String toHash, @Nullable @QueryParam("start") Integer start, @Nullable @QueryParam("limit") Integer limit)
-
delete
@Named("comments:delete") @Consumes("application/json") @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments/{commentId}") @DELETE RequestStatus delete(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("pullRequestId") int pullRequestId, @PathParam("commentId") int commentId, @QueryParam("version") int version)
-
-