@Path(value="webhook") public class WebhooksResource extends AbstractResource
request, uriInfo
Constructor and Description |
---|
WebhooksResource(WebhooksController webhooksController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getWebhook(Long id) |
javax.ws.rs.core.Response |
registerWebhook(WebhookEntity webhookEntity) |
javax.ws.rs.core.Response |
registerWebhookWithSimpleBody(String endpointUrl) |
javax.ws.rs.core.Response |
unregisterWebhook(Long id) |
getApplicationName, getBaseUri, setApplicationName, setRequest, setUriInfo
public WebhooksResource(WebhooksController webhooksController)
@POST @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) public javax.ws.rs.core.Response registerWebhook(WebhookEntity webhookEntity) throws InvalidWebhookEndpointException
InvalidWebhookEndpointException
@POST @Consumes(value="text/plain") @XsrfProtectionExcluded public javax.ws.rs.core.Response registerWebhookWithSimpleBody(String endpointUrl) throws InvalidWebhookEndpointException
InvalidWebhookEndpointException
@GET @Produces(value={"application/xml","application/json"}) @Path(value="{webhookId}") public javax.ws.rs.core.Response getWebhook(@PathParam(value="webhookId") Long id) throws WebhookNotFoundException, ApplicationPermissionException
@DELETE @Path(value="{webhookId}") public javax.ws.rs.core.Response unregisterWebhook(@PathParam(value="webhookId") Long id) throws WebhookNotFoundException, ApplicationPermissionException
Copyright © 2021 Atlassian. All rights reserved.