2.3. Webhooks
- class backendapp.webhooks.schemas.ConsumerWebhookSchema(*args, **kwargs)[source]
A schema identical to
ConsumerWebhookSchemaWithKey
but with the webhook secret key omitted.This is used for API endpoints that GET information about existing webhooks.
- class backendapp.webhooks.schemas.ConsumerWebhookSchemaWithKey(*args, **kwargs)[source]
Schema for serialising a
Webhook
, which excludes the ID of the parent tag, but includes the serial string (as used in consumer API endpoints).The webhook secret key is part of this schema. It must only be used for POSTing a new webhook.