Class GlobalWebhooksResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.GlobalWebhooksResource
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalWebhooksResource(com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.sal.api.permission.PermissionEnforcer permissionEnforcer, OptionalServiceProvider optionalServiceProvider) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateWebhook(javax.ws.rs.core.UriInfo uriInfo, com.atlassian.webhooks.internal.rest.RestWebhook webhook) javax.ws.rs.core.ResponsedeleteWebhook(int webhookId) javax.ws.rs.core.ResponsefindWebhooks(javax.ws.rs.core.UriInfo uriInfo, List<String> events, boolean statistics, int start, int limit) javax.ws.rs.core.ResponsegetLatestInvocation(int webhookId, String eventId, Set<String> outcomes) javax.ws.rs.core.ResponsegetStatistics(int webhookId, String eventId) javax.ws.rs.core.ResponsegetStatisticsSummary(int webhookId) javax.ws.rs.core.ResponsegetWebhook(int webhookId, boolean statistics) javax.ws.rs.core.ResponsetestWebhook(String url) javax.ws.rs.core.ResponseupdateWebhook(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
-