Interface CommentsApi


  • @Produces("application/json")
    @Path("/rest/api/{jclouds.api-version}/projects")
    public interface CommentsApi
    • 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)