SyntropyWeb.Api.WebhookController (syntropy v0.2.0)

Copy Markdown

REST management of webhook endpoint registrations and delivery logs.

Summary

Functions

POST /api/webhooks — register an endpoint. Returns the secret once.

DELETE /api/webhooks/:id — remove a registration.

GET /api/webhooks — list registrations with recent delivery attempts.

PATCH /api/webhooks/:id — pause or resume deliveries.

Functions

create(conn, params)

POST /api/webhooks — register an endpoint. Returns the secret once.

delete(conn, map)

DELETE /api/webhooks/:id — remove a registration.

index(conn, params)

GET /api/webhooks — list registrations with recent delivery attempts.

update(conn, params)

PATCH /api/webhooks/:id — pause or resume deliveries.