congress.api.webhook_model module

congress.api.webhook_model module

class congress.api.webhook_model.WebhookModel(name, bus=None)

Bases: congress.api.base.APIModel

Model for handling webhook notifications.

add_item(item, params, id_=None, context=None)

POST webhook notification.

Parameters:
  • item – The webhook payload
  • params – A dict-like object containing parameters from the request query string and body.
  • id – not used in this case; should be None
  • context – Key-values providing frame of reference of request
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.