Skip to content

ssa-web-solutions/appwrite-functions-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appwrite-functions-proxy

A proxy that make it easier to consume appwrite functions

Setup

Create your own .env file and set their values.

EXTRA_PROPS_IN_RESPONSE: is used to determine which properties from the default appwrite response you want to be in the proxy's response.

The others variables are self-explanatory =)

Run

To run the server just run the command below in the terminal:

yarn start

then make a request as follows

curl --location 'http://localhost:3000/fn/{your_function_id}' \
--header 'Content-Type: application/json' \
--data '{ "test": "test" }'

in case you wanna do an async request just add the X-Async header to your request

curl --location 'localhost:3000/fn/{your_function_id}' \
--header 'X-Async;' \
--header 'Content-Type: application/json' \
--data '{ "test": "test" }'

That's all =D

About

A proxy that make it easier to consume appwrite functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published