oncall-engine/engine/apps/api
Matias Bordese e93858e136
Add manual trigger support for webhooks (#4934)
Related to https://github.com/grafana/oncall/issues/4748

- Added support for additional filters when getting webhooks:
- `GET
/api/plugins/grafana-oncall-app/resources/webhooks/?integration=CALBFV7RRDH93`
  (filter webhooks that are enabled for the specified integration)
- `GET
/api/plugins/grafana-oncall-app/resources/webhooks/?trigger_type=0`
  (filter webhooks with the given trigger type)
- Allow triggering a Manual webhook using an alert group as context:
`POST /api/plugins/grafana-oncall-app/resources/webhooks/<webhook public
ID>/trigger_manual`
Example payload: `{"alert_group": "I4A4I1UPSA7IC"}`
(will return a 200 OK on success)

---------

Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-09-09 12:17:23 +00:00
..
serializers add start_rotation_from_user_index field to /oncall_shifts internal API response (#4854) 2024-08-21 08:13:51 -04:00
tests Add manual trigger support for webhooks (#4934) 2024-09-09 12:17:23 +00:00
throttlers Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
views Add manual trigger support for webhooks (#4934) 2024-09-09 12:17:23 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_table_columns.py Google OAuth2 flow + fetch Google Calendar OOO events (#4067) 2024-04-02 14:59:03 -04:00
errors.py Fix backend for resolution notes via mobile app (#2117) 2023-06-07 12:19:16 +00:00
label_filtering.py Webhook labels (#3383) 2023-11-22 11:17:41 +00:00
permissions.py Permissions for labels (#3173) 2023-10-23 11:03:51 +00:00
urls.py add POST /escalation public API endpoint + add public API docs for teams/organization endpoints (#4815) 2024-08-15 18:31:35 +00:00