Interface LikesApi


  • @Produces("application/json")
    @Path("/rest/comment-likes/{jclouds.api-version}/projects")
    public interface LikesApi
    • Method Detail

      • getLikes

        @Named("comments:getLikes")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments/{commentId}/likes")
        @GET
        LikePage getLikes​(@PathParam("project")
                          String project,
                          @PathParam("repo")
                          String repo,
                          @PathParam("pullRequestId")
                          int pullRequestId,
                          @PathParam("commentId")
                          int commentId)
      • likeComment

        @Named("comments:likeComment")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments/{commentId}/likes")
        @POST
        RequestStatus likeComment​(@PathParam("project")
                                  String project,
                                  @PathParam("repo")
                                  String repo,
                                  @PathParam("pullRequestId")
                                  int pullRequestId,
                                  @PathParam("commentId")
                                  int commentId)
      • unlikeComment

        @Named("comments:unlikeComment")
        @Consumes("application/json")
        @Path("/{project}/repos/{repo}/pull-requests/{pullRequestId}/comments/{commentId}/likes")
        @DELETE
        RequestStatus unlikeComment​(@PathParam("project")
                                    String project,
                                    @PathParam("repo")
                                    String repo,
                                    @PathParam("pullRequestId")
                                    int pullRequestId,
                                    @PathParam("commentId")
                                    int commentId)