-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Improve webhook testing with new dev tools #845
Comments
I really like this feature. I think it will improve onboarding and dev experience. I can think of two options to get this done:
Second option will force us to move all the webhooks data objects from the console DB to the project specific DB. The endpoint will only be accessible on server integration with an API key and new custom scopes. |
I think the second option would be better for future features such as the CLI. If I upgrade appwrite to a newer version, I can just run the tests and make sure that everything works with the new appwrite version 👍 I did a similar thing with our stripe webhooks and it was quite handy after we migrated to the next major version of the stripe sdk. |
@JulianBissekkou sounds solid. You can also use something like request catcher for testing webhooks, we use it for the Appwrite server tests. https://github.com/appwrite/docker-requestcatcher we use our own image for ARM support. |
Oh That's nice! |
🚀 Feature
An easy way to trigger fake webhook events for testing webhook endpoints!
Have you spent some time to check if this issue has been raised before?
Yes, doesn't look like there is another issue like this.
Have you read the Code of Conduct?
Yes 👍🏼
Pitch
I was working with stripe for a while now (https://stripe.com/) and they have a great SDK for client and server.
They also have a CLI which can be used for testing webhook events.
For example:
I wanted to create a webhook event if a customer did a specific action.
The stripe CLI allows me to create a fake event and then I am able to send that to my webhook endpoint.
stripe listen --forward-to http:https://localhost:8080/myEndpoint
stripe trigger name_of_event
We don't need a CLI for appwrite, but maybe some tooling to make webhook testing a little easier.☺️
Maybe you can share some thoughts on this
The text was updated successfully, but these errors were encountered: