Skip to content

Commit b854dbb

Browse files
JackalxIhor Duzhyk
andauthored
webhooks swagger api documentation (#289)
* webhooks swagger api documentation --------- Co-authored-by: Ihor Duzhyk <[email protected]>
1 parent 15b58f9 commit b854dbb

File tree

6 files changed

+1084
-0
lines changed

6 files changed

+1084
-0
lines changed

scripts/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ cp('-R', 'spec/job_batches_v1', 'web_deploy/spec');
2121
cp('-R', 'spec/job_batches_v2', 'web_deploy/spec');
2222
cp('-R', 'spec/file_translation', 'web_deploy/spec');
2323
cp('-R', 'spec/glossary_v3', 'web_deploy/spec');
24+
cp('-R', 'spec/webhooks_api', 'web_deploy/spec');
2425
cp('-R', 'spec/api_common.yaml', 'web_deploy/spec');

scripts/deploy-branch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ if (branch && branch !== 'gh-pages') {
2121
cp('-R', 'spec/job_batches_v1', specFolder);
2222
cp('-R', 'spec/job_batches_v2', specFolder);
2323
cp('-R', 'spec/glossary_v3', specFolder);
24+
cp('-R', 'spec/webhooks_api', specFolder);
2425
cp('-R', 'spec/api_common.yaml', specFolder);
2526

2627
exec('deploy-to-gh-pages --update .tmp');

spec/openapi.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ tags:
341341
description: |-
342342
The Workflow Assignment API handles workflow step assignments for non agency users.
343343

344+
- name: Webhooks
345+
description: |-
346+
The Webhooks API allows you to create and manage webhook subscriptions to receive real-time notifications about events in your Smartling projects. You can subscribe to various event types and receive HTTP callbacks when these events occur. See our [Events Catalog](https://help.smartling.com/hc/en-us/articles/39696685668251-Smartling-Webhooks-Overview) for a full list of events.
347+
344348
paths:
345349
/auth-api/v2/authenticate:
346350
post:
@@ -9789,6 +9793,45 @@ paths:
97899793
## GlossaryV3 API END
97909794
#
97919795

9796+
#
9797+
## Webhooks API
9798+
#
9799+
/webhooks-api/v2/accounts/{accountUid}/subscriptions:
9800+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscriptions'
9801+
9802+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}:
9803+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_details'
9804+
9805+
/webhooks-api/v2/accounts/{accountUid}/available-event-types:
9806+
$ref: './spec/webhooks_api/webhooks_events.yaml#/x-paths/available_event_types'
9807+
9808+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/patch:
9809+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_patch'
9810+
9811+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/secret:
9812+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_secret'
9813+
9814+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/statistics:
9815+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_statistics'
9816+
9817+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/enable:
9818+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_enable'
9819+
9820+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/disable:
9821+
$ref: './spec/webhooks_api/webhooks_subscriptions.yaml#/x-paths/subscription_disable'
9822+
9823+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/events:
9824+
$ref: './spec/webhooks_api/webhooks_events.yaml#/x-paths/subscription_events'
9825+
9826+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/events/{eventId}:
9827+
$ref: './spec/webhooks_api/webhooks_events.yaml#/x-paths/event_details'
9828+
9829+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/events/{eventId}/attempts:
9830+
$ref: './spec/webhooks_api/webhooks_events.yaml#/x-paths/event_attempts'
9831+
9832+
/webhooks-api/v2/accounts/{accountUid}/subscriptions/{subscriptionUid}/events/{eventId}/send:
9833+
$ref: './spec/webhooks_api/webhooks_events.yaml#/x-paths/event_resend'
9834+
97929835

97939836
components:
97949837
requestBodies:

0 commit comments

Comments
 (0)