Rank 1: Thread
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
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 1: Thread
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?
Rank 1: Thread
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
Rank 1: Thread
hoo, In firebase cloud function, you can create your own custom API endpoint, why don't appwrite, implement that ?
Rank 1: Thread
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.
Rank 1: Thread
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.
Admin
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...
Admin
what was the error message? what's the code?
Rank 1: Thread
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,
Rank 1: Thread
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
Admin
It depends on what you do in your function code
Admin
What's the error?