Class GlobalWebhooksResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.GlobalWebhooksResource
-
Constructor Summary
ConstructorDescriptionGlobalWebhooksResource
(com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.sal.api.permission.PermissionEnforcer permissionEnforcer, OptionalServiceProvider optionalServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
createWebhook
(javax.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.internal.rest.RestWebhook webhook) javax.ws.rs.core.Response
deleteWebhook
(int webhookId) javax.ws.rs.core.Response
findWebhooks
(javax.ws.rs.core.UriInfo uriInfo, List<String> events, boolean statistics, int start, int limit) javax.ws.rs.core.Response
getLatestInvocation
(int webhookId, String eventId, Set<String> outcomes) javax.ws.rs.core.Response
getStatistics
(int webhookId, String eventId) javax.ws.rs.core.Response
getStatisticsSummary
(int webhookId) javax.ws.rs.core.Response
getWebhook
(int webhookId, boolean statistics) javax.ws.rs.core.Response
testWebhook
(String url) javax.ws.rs.core.Response
updateWebhook
(int webhookId, com.atlassian.webhooks.internal.rest.RestWebhook webhook)
-
Constructor Details
-
GlobalWebhooksResource
@Inject public GlobalWebhooksResource(com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.sal.api.permission.PermissionEnforcer permissionEnforcer, OptionalServiceProvider optionalServiceProvider)
-
-
Method Details
-
createWebhook
public javax.ws.rs.core.Response createWebhook(@Context javax.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.internal.rest.RestWebhook webhook) throws ContentTooLongException - Throws:
ContentTooLongException
-
deleteWebhook
public javax.ws.rs.core.Response deleteWebhook(int webhookId) -
findWebhooks
-
getLatestInvocation
-
getStatistics
-
getStatisticsSummary
public javax.ws.rs.core.Response getStatisticsSummary(int webhookId) -
getWebhook
public javax.ws.rs.core.Response getWebhook(int webhookId, boolean statistics) -
testWebhook
- Throws:
ContentTooLongException
-
updateWebhook
public javax.ws.rs.core.Response updateWebhook(int webhookId, com.atlassian.webhooks.internal.rest.RestWebhook webhook) throws ContentTooLongException - Throws:
ContentTooLongException
-