From 9cf27b5399252091bdcab47c144669358afd4d0c Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Mon, 11 Sep 2023 01:20:34 +0000 Subject: [PATCH 1/2] Fix snake case in python and ruby examples --- app/views/docs/functions-develop.phtml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/docs/functions-develop.phtml b/app/views/docs/functions-develop.phtml index 12ff0d67..2f366cfc 100644 --- a/app/views/docs/functions-develop.phtml +++ b/app/views/docs/functions-develop.phtml @@ -567,7 +567,7 @@ return function ($context) {
import json
 
 def main(context):
-    context.log(context.req.bodyRaw)             # Raw request body, contains request data
+    context.log(context.req.body_raw)             # Raw request body, contains request data
     context.log(json.dumps(context.req.body))    # Object from parsed JSON request body, otherwise string
     context.log(json.dumps(context.req.headers)) # String key-value pairs of all request headers, keys are lowercase
     context.log(context.req.scheme)              # Value of the x-forwarded-proto header, usually http or https
@@ -576,7 +576,7 @@ def main(context):
     context.log(context.req.host)                # Hostname from the host header, such as awesome.appwrite.io
     context.log(context.req.port)                # Port from the host header, for example 8000
     context.log(context.req.path)                # Path part of URL, for example /v1/hooks
-    context.log(context.req.queryString)         # Raw query params string. For example "limit=12&offset=50"
+    context.log(context.req.query_string)         # Raw query params string. For example "limit=12&offset=50"
     context.log(json.dumps(context.req.query))   # Parsed query params. For example, req.query.limit
 
     return context.res.send("All the request parameters are logged to the Appwrite Console.")
@@ -588,7 +588,7 @@ def main(context):
require 'json'
                 
 def main(context)
-    context.log(context.req.bodyRaw)                #  Raw request body, contains request data
+    context.log(context.req.body_raw)                #  Raw request body, contains request data
     context.log(JSON.generate(context.req.body))    # Object from parsed JSON request body, otherwise string
     context.log(JSON.generate(context.req.headers)) # String key-value pairs of all request headers, keys are lowercase
     context.log(context.req.scheme)                 # Value of the x-forwarded-proto header, usually http or https
@@ -597,7 +597,7 @@ def main(context)
     context.log(context.req.host)                   # Hostname from the host header, such as awesome.appwrite.io
     context.log(context.req.port)                   # Port from the host header, for example 8000
     context.log(context.req.path)                   # Path part of URL, for example /v1/hooks
-    context.log(context.req.queryString)            # Raw query params string. For example "limit=12&offset=50"
+    context.log(context.req.query_string)            # Raw query params string. For example "limit=12&offset=50"
     context.log(JSON.generate(context.req.query))   # Parsed query params. For example, req.query.limit
 
     return context.res.send("All the request parameters are logged to the Appwrite Console.")

From dd7ecddfc28d47505007cfa957422fcf5890ca07 Mon Sep 17 00:00:00 2001
From: "Vincent (Wen Yu) Ge" 
Date: Mon, 11 Sep 2023 02:26:47 +0000
Subject: [PATCH 2/2] Fix link to domains

---
 app/views/docs/functions-execute.phtml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/docs/functions-execute.phtml b/app/views/docs/functions-execute.phtml
index 150aa284..f267fe24 100644
--- a/app/views/docs/functions-execute.phtml
+++ b/app/views/docs/functions-execute.phtml
@@ -23,7 +23,7 @@ use Appwrite\Utopia\View;
 
 
 

- Alternatively you can add a custom domain to your Appwrite Function. + Alternatively you can add a custom domain to your Appwrite Function.

REST API