-
Notifications
You must be signed in to change notification settings - Fork 10
DEVORTEX-5439 add webhooks api #125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
interface SubscriptionSecretDto { | ||
payloadSecret: string; | ||
} | ||
|
||
export { SubscriptionSecretDto }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no actions points: weird naming. it's already clear this secret is in payload.
enableSubscription( | ||
accountUid: string, | ||
subscriptionUid: string | ||
): Promise<void> { | ||
return this.makeRequest( | ||
"post", | ||
`${this.entrypoint}/accounts/${accountUid}/subscriptions/${subscriptionUid}/enable` | ||
); | ||
} | ||
|
||
disableSubscription( | ||
accountUid: string, | ||
subscriptionUid: string | ||
): Promise<void> { | ||
return this.makeRequest( | ||
"post", | ||
`${this.entrypoint}/accounts/${accountUid}/subscriptions/${subscriptionUid}/disable` | ||
); | ||
} | ||
|
||
testSubscription( | ||
accountUid: string, | ||
subscriptionUid: string | ||
): Promise<void> { | ||
return this.makeRequest( | ||
"post", | ||
`${this.entrypoint}/accounts/${accountUid}/subscriptions/${subscriptionUid}/test` | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember initial arch review but have you guys arranged API review? These verbs in endpoints look strange (test/enable/disable/etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dnetrebenko-smartling could you please answer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we passed api review.all these actions (enable/disable/test) are business actions for subscriptions. do you have any ideas how to changes them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do, but since api review is passed and endpoints are approved - I'm ok to leave these as is.
is this still in work (draft) or it waits for approves? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answering this: #125 (comment)
we are waiting for all endpoints implemented on the backend side
No description provided.