MCPcopy Create free account
hub / github.com/StackStorm/st2 / _is_valid_hook

Method _is_valid_hook

st2api/st2api/controllers/v1/webhooks.py:194–196  ·  view source on GitHub ↗
(self, hook)

Source from the content-addressed store, hash-verified

192 return Response(json=body, status=http_client.ACCEPTED)
193
194 def _is_valid_hook(self, hook):
195 # TODO: Validate hook payload with payload_schema.
196 return hook in self._hooks
197
198 def _register_webhook_trigger_types(self):
199 for trigger_type in WEBHOOK_TRIGGER_TYPES.values():

Callers 2

postMethod · 0.95

Calls

no outgoing calls

Tested by 1