com.atlassian.crowd.plugin.rest.service.resource
Class WebhooksResource

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
      extended by com.atlassian.crowd.plugin.rest.service.resource.WebhooksResource

public class WebhooksResource
extends AbstractResource

Webhook management resource

Since:
v2.7

Field Summary
 
Fields inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
DEFAULT_SEARCH_RESULT_SIZE, MAX_RESULTS_PARAM, request, START_INDEX_PARAM, uriInfo
 
Constructor Summary
WebhooksResource(WebhooksController webhooksController)
           
 
Method Summary
 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)
           
 
Methods inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
getApplicationName, getBaseUri, setApplicationName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebhooksResource

public WebhooksResource(WebhooksController webhooksController)
Method Detail

registerWebhook

public javax.ws.rs.core.Response registerWebhook(WebhookEntity webhookEntity)
                                          throws InvalidWebhookEndpointException
Throws:
InvalidWebhookEndpointException

registerWebhookWithSimpleBody

public javax.ws.rs.core.Response registerWebhookWithSimpleBody(String endpointUrl)
                                                        throws InvalidWebhookEndpointException
Throws:
InvalidWebhookEndpointException

getWebhook

public javax.ws.rs.core.Response getWebhook(Long id)
                                     throws WebhookNotFoundException,
                                            ApplicationPermissionException
Throws:
WebhookNotFoundException
ApplicationPermissionException

unregisterWebhook

public javax.ws.rs.core.Response unregisterWebhook(Long id)
                                            throws WebhookNotFoundException,
                                                   ApplicationPermissionException
Throws:
WebhookNotFoundException
ApplicationPermissionException


Copyright © 2013 Atlassian. All Rights Reserved.