[Solved] How to include path when calling Appwrite functions in local self hosted environment
- 0
- Functions
- Webhooks
In local self hosted environment, functions can be invoked by
curl -X "POST" "https://localhost/v1/functions/{functionId}/executions" \
-H 'X-Appwrite-Project: {projectId}'
However I can't find a way to specify different paths, please help.
This doesn't really have anything to do with self-hosted vs cloud.
If you're calling the Create execution API, you would set the path param. See: https://appwrite.io/docs/references/cloud/client-rest/functions#createExecution
How to include path when calling Appwrite functions in local self hosted environment
Thanks for the answer. What I meant here was actually in locally hosted environment. For example in Appwrite cloud we can use https://{functionId}.appwrite.global and append path directly to it. Updated post title.
[Solved] How to include path when calling Appwrite functions in local self hosted environment
Technically, you can set up this auto generated function domain in your self hosted environment too but its a bit convoluted to get the certificates working.
An easy alternative is to use custom function domains.
Tried out custom function domains and they are great, thanks for the help
Recommended threads
- How to send Webhooks to internal network
When saving the URL for sending Webhooks, Appwrite checks if it's a valid external domain name so entering internal IP address or docker hostnames won't save th...
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...