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)
public javax.ws.rs.core.Response registerWebhook(WebhookEntity webhookEntity) throws InvalidWebhookEndpointException
InvalidWebhookEndpointException
@XsrfProtectionExcluded public javax.ws.rs.core.Response registerWebhookWithSimpleBody(String endpointUrl) throws InvalidWebhookEndpointException
InvalidWebhookEndpointException
public javax.ws.rs.core.Response getWebhook(Long id) throws WebhookNotFoundException, ApplicationPermissionException
public javax.ws.rs.core.Response unregisterWebhook(Long id) throws WebhookNotFoundException, ApplicationPermissionException
Copyright © 2019 Atlassian. All rights reserved.