commit ff6234be35dd58027ace1cab5c6d4f6d5c2e6518 parent feed2313862ff02224e8ee74c95bf4c561c3229b Author: priscilla <priscilla.huang@efrei.net> Date: Wed, 1 Feb 2023 06:56:14 -0500 update of the doc webhook Diffstat:
| M | core/api-merchant.rst | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -3310,7 +3310,7 @@ Inspecting webhook .. http:get:: [/instances/$INSTANCES]/private/webhooks - This is used to return the list of all the webhooks. + This is used to return all the webhooks that are present in our backend. **Response:** @@ -3324,16 +3324,16 @@ Inspecting webhook interface WebhookSummaryResponse { - // List of webhooks that are present in our backend. - webhooks_list: WebhookEntry[]; + // Return webhooks that are present in our backend. + webhooks: WebhookEntry[]; } The WebhookEntry object describes a webhook. It has the following structure: - .. ts:def:: WebhookEntry + .. ts:def:: WebhookSummaryResponse - interface WebhookEntry { + interface Webhook { // Webhook identifier, as found in the webhook. webhook_id: string;