Interface WebhookApiDelegate


@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
           date="2023-05-04T13:06:45.139911129Z[Etc/UTC]")
public interface WebhookApiDelegate
A delegate to be called by the WebhookApiController}. Implement this interface with a Service annotated class.
  • Method Summary

    Modifier and Type Method Description
    default Optional<org.springframework.web.context.request.NativeWebRequest> getRequest()  
    default org.springframework.http.ResponseEntity<Void> notifyWebhookEvent​(String contentSignature, Event event)
    POST /webhook : Оповестить о событии
  • Method Details

    • getRequest

      default Optional<org.springframework.web.context.request.NativeWebRequest> getRequest()
    • notifyWebhookEvent

      default org.springframework.http.ResponseEntity<Void> notifyWebhookEvent​(String contentSignature, Event event)
      POST /webhook : Оповестить о событии
      Parameters:
      contentSignature - Подпись сообщения, сформированная согласно указанным выше правилам (required)
      event - Данные произошедшего в платформе события (required)
      Returns:
      Оповещение обработано (status code 200) or Заданный ресурс не найден (status code 404)
      See Also:
      WebhookApi.notifyWebhookEvent(java.lang.String, dev.vality.swag_webhook_events.model.Event)