hey guys, can please help me, how can i create custom Rest API in appwrite ? I try using cloud function but it return fixed response, should I use web SDK and create my REST API there ? thanks
What exactly do you want to do with your API?
creating multiple collections based on my own business rule validation, i have to wright it by my own way, its not enough the already build one
if i'm not wrong, there is no way to 'bulk create' documents right now. There is a feature request on the github repo though
Other than this, I don't think you can create your own API endpoint. That's up to the appwrite devs to decide
hoo, In firebase cloud function, you can create your own custom API endpoint, why don't appwrite, implement that ?
and one more when my function executed, from 10, 4 has failed due to network error, its become my desktop docker bandwidth or ?
In next functions iteration we plan to integrate functions much closer to HTTP, allowing you to define custom API endpoints.
From past, Appwrite Functions started as feature requested by frontend developers to run code securely. Since Appwrite 1.0 we noticed many backend developers are using Appwrite Functions to host their backend code to simplify workflow and deployment. You can expect custom API endpoints support as well as more HTTP possibilities with Appwrite Functions in future releases.
ok, Matej thanks for your response , when will the future releases, do you know the time?
It's under active development. I don't have any ETA yet. Next Appwrite release will be 1.3, and I am not expecting to have functions iteration in it. I am pretty confident Appwrite 1.4 will include custom endpoints support.
Appwrite Functions sort of let's you do that. You would write a function that would take in some input and can then create collections...
what was the error message? what's the code?
right, I try that but the problem are, when I call the function via HTTP protocol, it return me with fixed response, while I want to return custom response,
when my function executed, from 10, 4 has failed due to network error, its because my desktop docker bandwidth or ? can any body explain me, imagine if I request million request and most of them failed. thanks
It depends on what you do in your function code
What's the error?
Recommended threads
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...