mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: edit field
This commit is contained in:
1 parent
5daacb7161
commit
c6b6b7cdac
16 files changed
+3422
-3964
No files matched your search
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