@Named public class WebhooksController extends AbstractResourceController
| Constructor and Description |
|---|
WebhooksController(ApplicationService applicationService,
AuthenticatedApplicationHolder authenticatedApplicationHolder) |
| Modifier and Type | Method and Description |
|---|---|
Webhook |
findWebhookById(long webhookId) |
Webhook |
registerWebhook(String endpointUrl,
String token) |
void |
unregisterWebhook(long webhookId) |
getAuthenticatedApplication@Inject public WebhooksController(ApplicationService applicationService, AuthenticatedApplicationHolder authenticatedApplicationHolder)
public Webhook findWebhookById(long webhookId) throws ApplicationPermissionException, WebhookNotFoundException
public Webhook registerWebhook(String endpointUrl, @Nullable String token) throws InvalidWebhookEndpointException
InvalidWebhookEndpointExceptionpublic void unregisterWebhook(long webhookId)
throws ApplicationPermissionException,
WebhookNotFoundException
Copyright © 2019 Atlassian. All rights reserved.