Merge pull request #10395 from appwrite/fix-namespace-naming-specs

fix: namespace naming from tables-db to tablesdb in specs
This commit is contained in:
Jake Barnby 2025-08-28 01:52:38 +12:00 committed by GitHub
commit 3cb45d6387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 50 additions and 50 deletions

View file

@ -7625,7 +7625,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
}
],
"auth": {
@ -7867,7 +7867,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -32189,7 +32189,7 @@
}
],
"description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/list-usage.md"
"demo": "tablesdb\/list-usage.md"
}
],
"auth": {
@ -36082,7 +36082,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -36108,7 +36108,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -36247,7 +36247,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -36662,7 +36662,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {
@ -37410,7 +37410,7 @@
}
],
"description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/get-usage.md"
"demo": "tablesdb\/get-usage.md"
}
],
"auth": {

View file

@ -26438,7 +26438,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -26465,7 +26465,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -26607,7 +26607,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -27028,7 +27028,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -7625,7 +7625,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
}
],
"auth": {
@ -7867,7 +7867,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -32189,7 +32189,7 @@
}
],
"description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/list-usage.md"
"demo": "tablesdb\/list-usage.md"
}
],
"auth": {
@ -36082,7 +36082,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -36108,7 +36108,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -36247,7 +36247,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -36662,7 +36662,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {
@ -37410,7 +37410,7 @@
}
],
"description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/get-usage.md"
"demo": "tablesdb\/get-usage.md"
}
],
"auth": {

View file

@ -26438,7 +26438,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -26465,7 +26465,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -26607,7 +26607,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -27028,7 +27028,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -7702,7 +7702,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
}
],
"auth": {
@ -7935,7 +7935,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -32373,7 +32373,7 @@
}
],
"description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/list-usage.md"
"demo": "tablesdb\/list-usage.md"
}
],
"auth": {
@ -36207,7 +36207,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -36233,7 +36233,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -36372,7 +36372,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -36770,7 +36770,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {
@ -37477,7 +37477,7 @@
}
],
"description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/get-usage.md"
"demo": "tablesdb\/get-usage.md"
}
],
"auth": {

View file

@ -26623,7 +26623,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -26650,7 +26650,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -26792,7 +26792,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -27196,7 +27196,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -7702,7 +7702,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
}
],
"auth": {
@ -7935,7 +7935,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -32373,7 +32373,7 @@
}
],
"description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/list-usage.md"
"demo": "tablesdb\/list-usage.md"
}
],
"auth": {
@ -36207,7 +36207,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -36233,7 +36233,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -36372,7 +36372,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -36770,7 +36770,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {
@ -37477,7 +37477,7 @@
}
],
"description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.",
"demo": "tables-db\/get-usage.md"
"demo": "tablesdb\/get-usage.md"
}
],
"auth": {

View file

@ -26623,7 +26623,7 @@
}
],
"description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-row.md"
"demo": "tablesdb\/create-row.md"
},
{
"name": "createRows",
@ -26650,7 +26650,7 @@
}
],
"description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/create-rows.md"
"demo": "tablesdb\/create-rows.md"
}
],
"auth": {
@ -26792,7 +26792,7 @@
}
],
"description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n",
"demo": "tables-db\/upsert-rows.md"
"demo": "tablesdb\/upsert-rows.md"
}
],
"auth": {
@ -27196,7 +27196,7 @@
}
],
"description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.",
"demo": "tables-db\/upsert-row.md"
"demo": "tablesdb\/upsert-row.md"
}
],
"auth": {

View file

@ -221,7 +221,7 @@ class OpenAPI3 extends Format
'required' => [],
'responses' => [],
'description' => ($desc) ? \file_get_contents($desc) : '',
'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md',
'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md',
];
// add deprecation only if method has it!

View file

@ -230,7 +230,7 @@ class Swagger2 extends Format
'required' => [],
'responses' => [],
'description' => ($desc) ? \file_get_contents($desc) : '',
'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md',
'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md',
];
// add deprecation only if method has it!