Interface WebhookValidationService

All Known Implementing Classes:
DefaultWebhookValidationService

public interface WebhookValidationService
A service that provides means to test if a WebhookConfigurationModel valid.
  • Method Details

    • pingWebhookDestination

      void pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfiguration, @NotNull @NotNull String webhookPayload) throws WebhookConfigurationValidationException
      Send Mocked Integration Object Payload to Destination to validate WebhookConfiguration
      Parameters:
      webhookConfiguration - WebhookConfiguration
      webhookPayload - Mocked Payload of Integration Object
      Throws:
      WebhookConfigurationValidationException - Validation Exception
    • pingWebhookDestination

      rx.Observable<org.springframework.http.ResponseEntity<Map>> pingWebhookDestination(@NotNull @NotNull WebhookConfigurationModel webhookConfig, @NotNull @NotNull ItemModel item)
      Send a test payload to check whether the WebhookConfiguration is working correctly.
      Parameters:
      webhookConfig - WebhookConfiguration to be tested
      item - Item Model instance
      Returns:
      response entity