Skip to content
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

Move webhook endpoints to the REST API #510

Merged
merged 6 commits into from
Oct 1, 2023

Conversation

JVT038
Copy link
Collaborator

@JVT038 JVT038 commented Sep 27, 2023

This PR moves the webhooks to the API group instead of web.

Should the other webhook-related functions (such as deleting a webhook URL and regenerating an URL) be moved to the API group as well?

@JVT038 JVT038 requested a review from leepeuker as a code owner September 27, 2023 15:14
@JVT038
Copy link
Collaborator Author

JVT038 commented Sep 27, 2023

Should the webhook payload also be added to the openapi specs?

@leepeuker
Copy link
Owner

Should the webhook payload also be added to the openapi specs?

Hm, good question. I guess we could document what we really use from the payload (instead of everything the webhhook source provides). On the other site, documenting it would make it easier for people to use the webhook endpoints for other stuff and I do not think I would like to support this. The webhooks are depended on what the third party sends to us and not on how we would like it.

settings/routes.php Outdated Show resolved Hide resolved
settings/routes.php Outdated Show resolved Hide resolved
leepeuker
leepeuker previously approved these changes Sep 30, 2023
Copy link
Owner

@leepeuker leepeuker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JVT038 I have pushed my changes, looks good to merge to me now

@leepeuker leepeuker changed the title Move webhook handling to the API endpoints. Move webhook endpoints to the REST API Oct 1, 2023
@leepeuker leepeuker merged commit 31aeca5 into main Oct 1, 2023
1 check passed
@leepeuker leepeuker deleted the move-webhook-endpoints-to-api branch October 1, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants