Interface PostWebHookApi
-
@Produces("application/json") @Path("/rest") public interface PostWebHookApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PostWebHookcreate(String project, String repo, CreatePostWebHook postWebHook)RequestStatusdelete(String project, String repo, String postWebHookId)List<PostWebHook>list(String project, String repo)PostWebHookupdate(String project, String repo, String postWebHookId, CreatePostWebHook postWebHook)
-
-
-
Method Detail
-
list
@Named("postwebhook:list") @Consumes("application/json") @Path("/webhook/{jclouds.api-version}/projects/{project}/repos/{repo}/webhook/configurations") @GET List<PostWebHook> list(@PathParam("project") String project, @PathParam("repo") String repo)
-
update
@Named("postwebhook:update-postwebhook") @Consumes("application/json") @Path("/webhook/{jclouds.api-version}/projects/{project}/repos/{repo}/webhook/configurations/{postWebHookId}") @PUT PostWebHook update(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("postWebHookId") String postWebHookId, CreatePostWebHook postWebHook)
-
create
@Named("postwebhook:create-postwebhook") @Consumes("application/json") @Path("/webhook/{jclouds.api-version}/projects/{project}/repos/{repo}/webhook/configurations") @POST PostWebHook create(@PathParam("project") String project, @PathParam("repo") String repo, CreatePostWebHook postWebHook)
-
delete
@Named("postwebhook:delete-postwebhook") @Consumes("application/json") @Path("/webhook/{jclouds.api-version}/projects/{project}/repos/{repo}/webhook/configurations/{postWebHookId}") @DELETE RequestStatus delete(@PathParam("project") String project, @PathParam("repo") String repo, @PathParam("postWebHookId") String postWebHookId)
-
-