Skip to content

Commit e4a4f77

Browse files
committed
add description of webhook usage
1 parent e0d86d6 commit e4a4f77

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "base.html" %}
22

3-
{% block title %}Webhook Detail{% endblock %}
3+
{% block title %}Webhook Details{% endblock %}
44

55
{% block content %}
66
<p><strong>Target Object</strong>: {{ webhook.content_object }} ({{ webhook.content_type }})</p>
@@ -9,4 +9,12 @@
99
<p><strong>Filter:</strong> {{ webhook.filter }}</p>
1010
<p><strong>HTTP Method:</strong> {{ webhook.get_method_display }}</p>
1111
<p><strong>Triggered:</strong> {{ webhook.triggered }}</p>
12+
13+
<hr />
14+
<p>
15+
To trigger this webhook you must send an HTTP <strong>{{ webhook.get_method_display }}</strong>
16+
request to {{ request.build_absolute_uri }}
17+
{% if webhook.filter %} with a payload that passes the filter <strong>{{ webhook.filter }}</strong>.{% else %}.{% endif %}
18+
When triggered this will <strong>{{ webhook.get_action_display }}</strong> the <strong>{{ webhook.content_object }}</strong> object.
19+
</p>
1220
{% endblock %}

0 commit comments

Comments
 (0)