From cd4f78d61965aeb77d9e64b235b2331783452a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 2 Dec 2024 15:34:39 +0100 Subject: [PATCH] Update specs --- app/config/specs/open-api3-latest-client.json | 14 +- .../specs/open-api3-latest-console.json | 253 +++++++++++++++++- app/config/specs/open-api3-latest-server.json | 248 ++++++++++++++++- app/config/specs/swagger2-latest-client.json | 14 +- app/config/specs/swagger2-latest-console.json | 251 ++++++++++++++++- app/config/specs/swagger2-latest-server.json | 246 ++++++++++++++++- 6 files changed, 974 insertions(+), 52 deletions(-) diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 8757bb885f..0d0a7a0404 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -9360,11 +9360,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -9432,7 +9437,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -9448,7 +9453,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 413b3d8dfe..8d9d716009 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -25568,7 +25568,7 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 419, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -25670,7 +25670,7 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 420, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -25732,7 +25732,7 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 422, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -26800,6 +26800,227 @@ ] } }, + "\/sites\/{siteId}\/logs": { + "get": { + "summary": "List logs", + "operationId": "sitesListLogs", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Executions List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/executionList" + } + } + } + } + }, + "x-appwrite": { + "method": "listLogs", + "weight": 415, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/list-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId", + "required": false, + "schema": { + "type": "string", + "default": [] + }, + "in": "query" + }, + { + "name": "search", + "description": "Search term to filter your list results. Max length: 256 chars.", + "required": false, + "schema": { + "type": "string", + "x-example": "", + "default": "" + }, + "in": "query" + } + ] + } + }, + "\/sites\/{siteId}\/logs\/{logId}": { + "get": { + "summary": "Get log", + "operationId": "sitesGetLog", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Execution", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/execution" + } + } + } + } + }, + "x-appwrite": { + "method": "getLog", + "weight": 414, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/get-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/get-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ] + }, + "delete": { + "summary": "Delete log", + "operationId": "sitesDeleteLog", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteLog", + "weight": 416, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/delete-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/delete-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.write", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ] + } + }, "\/sites\/{siteId}\/usage": { "get": { "summary": "Get site usage", @@ -26822,7 +27043,7 @@ }, "x-appwrite": { "method": "getSiteUsage", - "weight": 421, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -26906,7 +27127,7 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 416, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -26967,7 +27188,7 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 414, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -27060,7 +27281,7 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 415, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27131,7 +27352,7 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 417, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27219,7 +27440,7 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 418, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -38431,11 +38652,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -38503,7 +38729,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -38519,7 +38745,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 643d8bf0be..fe2b63bf6d 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -18391,6 +18391,230 @@ ] } }, + "\/sites\/{siteId}\/logs": { + "get": { + "summary": "List logs", + "operationId": "sitesListLogs", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Executions List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/executionList" + } + } + } + } + }, + "x-appwrite": { + "method": "listLogs", + "weight": 415, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/list-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId", + "required": false, + "schema": { + "type": "string", + "default": [] + }, + "in": "query" + }, + { + "name": "search", + "description": "Search term to filter your list results. Max length: 256 chars.", + "required": false, + "schema": { + "type": "string", + "x-example": "", + "default": "" + }, + "in": "query" + } + ] + } + }, + "\/sites\/{siteId}\/logs\/{logId}": { + "get": { + "summary": "Get log", + "operationId": "sitesGetLog", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Execution", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/execution" + } + } + } + } + }, + "x-appwrite": { + "method": "getLog", + "weight": 414, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/get-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/get-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ] + }, + "delete": { + "summary": "Delete log", + "operationId": "sitesDeleteLog", + "tags": [ + "sites" + ], + "description": "", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteLog", + "weight": 416, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/delete-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/delete-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.write", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ] + } + }, "\/sites\/{siteId}\/variables": { "get": { "summary": "List variables", @@ -18413,7 +18637,7 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 416, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -18475,7 +18699,7 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 414, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -18569,7 +18793,7 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 415, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -18641,7 +18865,7 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 417, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -18730,7 +18954,7 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 418, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -28160,11 +28384,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -28232,7 +28461,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -28248,7 +28477,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod", diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 22a28523cc..025f5da29f 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -9539,11 +9539,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -9613,7 +9618,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -9629,7 +9634,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod", diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 1419d4aec8..7676c049a1 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -26067,7 +26067,7 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 419, + "weight": 422, "cookies": false, "type": "", "deprecated": false, @@ -26165,7 +26165,7 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 420, + "weight": 423, "cookies": false, "type": "", "deprecated": false, @@ -26227,7 +26227,7 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 422, + "weight": 425, "cookies": false, "type": "", "deprecated": false, @@ -27309,6 +27309,225 @@ ] } }, + "\/sites\/{siteId}\/logs": { + "get": { + "summary": "List logs", + "operationId": "sitesListLogs", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Executions List", + "schema": { + "$ref": "#\/definitions\/executionList" + } + } + }, + "x-appwrite": { + "method": "listLogs", + "weight": 415, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/list-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + }, + { + "name": "search", + "description": "Search term to filter your list results. Max length: 256 chars.", + "required": false, + "type": "string", + "x-example": "", + "default": "", + "in": "query" + } + ] + } + }, + "\/sites\/{siteId}\/logs\/{logId}": { + "get": { + "summary": "Get log", + "operationId": "sitesGetLog", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Execution", + "schema": { + "$ref": "#\/definitions\/execution" + } + } + }, + "x-appwrite": { + "method": "getLog", + "weight": 414, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/get-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/get-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + } + ] + }, + "delete": { + "summary": "Delete log", + "operationId": "sitesDeleteLog", + "consumes": [ + "application\/json" + ], + "produces": [], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteLog", + "weight": 416, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/delete-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/delete-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.write", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + } + ] + } + }, "\/sites\/{siteId}\/usage": { "get": { "summary": "Get site usage", @@ -27333,7 +27552,7 @@ }, "x-appwrite": { "method": "getSiteUsage", - "weight": 421, + "weight": 424, "cookies": false, "type": "", "deprecated": false, @@ -27415,7 +27634,7 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 416, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -27476,7 +27695,7 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 414, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -27570,7 +27789,7 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 415, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -27639,7 +27858,7 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 417, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -27727,7 +27946,7 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 418, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -38991,11 +39210,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -39065,7 +39289,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -39081,7 +39305,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod", diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 945b1daee6..5e685419fa 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -18872,6 +18872,228 @@ ] } }, + "\/sites\/{siteId}\/logs": { + "get": { + "summary": "List logs", + "operationId": "sitesListLogs", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Executions List", + "schema": { + "$ref": "#\/definitions\/executionList" + } + } + }, + "x-appwrite": { + "method": "listLogs", + "weight": 415, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/list-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + }, + { + "name": "search", + "description": "Search term to filter your list results. Max length: 256 chars.", + "required": false, + "type": "string", + "x-example": "", + "default": "", + "in": "query" + } + ] + } + }, + "\/sites\/{siteId}\/logs\/{logId}": { + "get": { + "summary": "Get log", + "operationId": "sitesGetLog", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "200": { + "description": "Execution", + "schema": { + "$ref": "#\/definitions\/execution" + } + } + }, + "x-appwrite": { + "method": "getLog", + "weight": 414, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/get-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/get-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.read", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + } + ] + }, + "delete": { + "summary": "Delete log", + "operationId": "sitesDeleteLog", + "consumes": [ + "application\/json" + ], + "produces": [], + "tags": [ + "sites" + ], + "description": "", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteLog", + "weight": 416, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "sites\/delete-log.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/sites\/delete-log.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "log.write", + "platforms": [ + "server" + ], + "packaging": false, + "offline-model": "", + "offline-key": "", + "offline-response-key": "$id", + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "siteId", + "description": "Site ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "logId", + "description": "Log ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + } + ] + } + }, "\/sites\/{siteId}\/variables": { "get": { "summary": "List variables", @@ -18896,7 +19118,7 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 416, + "weight": 419, "cookies": false, "type": "", "deprecated": false, @@ -18958,7 +19180,7 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 414, + "weight": 417, "cookies": false, "type": "", "deprecated": false, @@ -19053,7 +19275,7 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 415, + "weight": 418, "cookies": false, "type": "", "deprecated": false, @@ -19123,7 +19345,7 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 417, + "weight": 420, "cookies": false, "type": "", "deprecated": false, @@ -19212,7 +19434,7 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 418, + "weight": 421, "cookies": false, "type": "", "deprecated": false, @@ -28693,11 +28915,16 @@ "any" ] }, - "functionId": { + "resourceId": { "type": "string", - "description": "Function ID.", + "description": "Resource ID.", "x-example": "5e5ea6g16897e" }, + "resourceType": { + "type": "string", + "description": "Resource type.", + "x-example": "sites" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -28767,7 +28994,7 @@ }, "duration": { "type": "number", - "description": "Function execution duration in seconds.", + "description": "Resource(function\/site) execution duration in seconds.", "x-example": 0.4, "format": "double" }, @@ -28783,7 +29010,8 @@ "$createdAt", "$updatedAt", "$permissions", - "functionId", + "resourceId", + "resourceType", "trigger", "status", "requestMethod",