[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 Can I Create landing page in appwrit...
I created function called invoice URL https://app.getrestt.com/v1/functions/invoice/executions?id=test-76f948fe83c43422561fe096c0674a1bd3ff0702cdfcf2444293ab31...
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...
- Synchronous function execution timeout w...
I am calling server functions with xasync = true and I still get this error message. Synchronous function execution timed out. Use asynchronous execution inste...