8000 🚀 Feature: Cloud: Is it possible to find the endpoint url of a cloud function in the current version of Cloud? · Issue #6170 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🚀 Feature: Cloud: Is it possible to find the endpoint url of a cloud function in the current version of Cloud? #6170

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

Closed
2 tasks done
JorensM opened this issue Sep 7, 2023 · 2 comments

Comments

@JorensM
Copy link
JorensM commented Sep 7, 2023

🔖 Feature description

I want to make it possible for my function to be called by a webhook from a third party. The docs say that you can find the endpoint url of a function in the Function's tab in the Appwrite console, but I'm assuming that this is for a newer version that Cloud doesn't use yet, because there is no information showing about the function's url. I wanted to know if there's some other way to find out the url of a function. Thanks

🎤 Pitch

Being able to get the endpoint urls of cloud functions would open a door to many possibilities, such as creating a public API or consuming webhook events.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@ItzNotABug
Copy link
Member

You can use the endpoints explicitly on Cloud as well like:
https://cloud.appwrite.io/v1/functions/{functionID}/executions. Although make sure to add X-Appwrite-Project header key with the value as your Project Id.

For this to work,
you may have to use Any or All guests persmission to allow executions from anywhere. Or if you can use Server Side SDK, you should instead use that.

Something like:

  1. External provider sends a POST request to your server, say hook.example.com/incoming.
  2. Process that request with verifications and other stuff.
  3. Use Server Side SDK to execute function & handle the results.

7CE9
@JorensM
Copy link
Author
JorensM commented Sep 7, 2023

@ItzNotABug Thanks, this works! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0