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.")
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