mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: edit field
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -12,7 +12,9 @@ const result = await databases.createCollection({
|
||||
name: '<NAME>',
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
documentSecurity: false, // optional
|
||||
enabled: false // optional
|
||||
enabled: false, // optional
|
||||
attributes: [], // optional
|
||||
indexes: [] // optional
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -12,7 +12,9 @@ const result = await tablesDB.createTable({
|
||||
name: '<NAME>',
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
rowSecurity: false, // optional
|
||||
enabled: false // optional
|
||||
enabled: false, // optional
|
||||
columns: [], // optional
|
||||
indexes: [] // optional
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -142,7 +142,6 @@ class OpenAPI3 extends Format
|
||||
'cookies' => $route->getLabel('sdk.cookies', false),
|
||||
'type' => $sdk->getType()->value ?? '',
|
||||
'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md',
|
||||
'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '',
|
||||
'rate-limit' => $route->getLabel('abuse-limit', 0),
|
||||
'rate-time' => $route->getLabel('abuse-time', 3600),
|
||||
'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'),
|
||||
@@ -153,6 +152,10 @@ class OpenAPI3 extends Format
|
||||
],
|
||||
];
|
||||
|
||||
if ($sdk->getDescriptionFilePath() !== null) {
|
||||
$temp['x-appwrite']['edit'] = 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription();
|
||||
}
|
||||
|
||||
if ($sdk->getDeprecated()) {
|
||||
$temp['x-appwrite']['deprecated'] = [
|
||||
'since' => $sdk->getDeprecated()->getSince(),
|
||||
|
||||
@@ -146,7 +146,6 @@ class Swagger2 extends Format
|
||||
'cookies' => $route->getLabel('sdk.cookies', false),
|
||||
'type' => $sdk->getType()->value ?? '',
|
||||
'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md',
|
||||
'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '',
|
||||
'rate-limit' => $route->getLabel('abuse-limit', 0),
|
||||
'rate-time' => $route->getLabel('abuse-time', 3600),
|
||||
'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'),
|
||||
@@ -157,6 +156,10 @@ class Swagger2 extends Format
|
||||
],
|
||||
];
|
||||
|
||||
if ($sdk->getDescriptionFilePath() !== null) {
|
||||
$temp['x-appwrite']['edit'] = 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription();
|
||||
}
|
||||
|
||||
if ($sdk->getDeprecated()) {
|
||||
$temp['x-appwrite']['deprecated'] = [
|
||||
'since' => $sdk->getDeprecated()->getSince(),
|
||||
|
||||
Reference in New Issue
Block a user