stnguyen90 / appwrite-function-proxy

Proxy to execute an Appwrite Function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appwrite Function Proxy

Proxy to execute an Appwrite Function.

Deploy on Railway Deploy with Vercel

✨ Features

💁‍♀️ How to use

Setup

  1. Deploy using a button 👆
  2. Configure the following environment variables:
    • APPWRITE_ENDPOINT: Appwrite endpoint
    • APPWRITE_PROJECTS: comma separated project IDs to allow using this proxy

Executing

To proxy your request to Appwrite, send a POST request to https://[DOMAIN]/api/projects/{project_id}/functions/{function_id}/executions with:

  1. your Appwrite API Key as the Authorization Bearer token for authentication
  2. your data as the request body

Example

curl -X POST https://$DOMAIN/projects/$PROJECT_ID/functions/$FUNCTION_ID/executions \
    -H "Authorization: Bearer $APPWRITE_API_KEY" \
    -d '{"x": 1}'

About

Proxy to execute an Appwrite Function.

License:MIT License


Languages

Language:JavaScript 100.0%