diff --git a/backend/resources/app/templates/api-doc-entry.tmpl b/backend/resources/app/templates/api-doc-entry.tmpl
index 97ce8a507..43af67c24 100644
--- a/backend/resources/app/templates/api-doc-entry.tmpl
+++ b/backend/resources/app/templates/api-doc-entry.tmpl
@@ -6,14 +6,21 @@
{% if item.deprecated %}
- Deprecated:
- since v{{item.deprecated}},
+ DEPRECATED
+
+ {% endif %}
+
+ {% if item.auth %}
+
+ AUTH
+
+ {% endif %}
+
+ {% if item.webhook %}
+
+ WEBHOOK
{% endif %}
-
- Auth:
- {% if item.auth %}YES{% else %}NO{% endif %}
-
diff --git a/backend/src/app/rpc/doc.clj b/backend/src/app/rpc/doc.clj
index e9da5ce76..112ecfad0 100644
--- a/backend/src/app/rpc/doc.clj
+++ b/backend/src/app/rpc/doc.clj
@@ -9,6 +9,7 @@
(:require
[app.common.data :as d]
[app.config :as cf]
+ [app.loggers.webhooks :as-alias webhooks]
[app.rpc :as-alias rpc]
[app.util.services :as sv]
[app.util.template :as tmpl]
@@ -35,6 +36,7 @@
:name (d/name name)
:module (-> (:ns mdata) (str/split ".") last)
:auth (:auth mdata true)
+ :webhook (::webhooks/event? mdata false)
:docs (::sv/docstring mdata)
:deprecated (::deprecated mdata)
:added (::added mdata)
@@ -51,6 +53,7 @@
(->> (:queries methods)
(map (partial gen-doc :query))
(sort-by (juxt :module :name)))
+
:mutation-methods
(->> (:mutations methods)
(map (partial gen-doc :query))