mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update TablesDB auth
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Transactions;
|
||||
|
||||
use Appwrite\Extend\Exception;
|
||||
use Utopia\Platform\Action as UtopiaAction;
|
||||
|
||||
abstract class Action extends UtopiaAction
|
||||
|
||||
@@ -37,7 +37,7 @@ class Create extends TransactionsCreate
|
||||
group: 'transactions',
|
||||
name: 'createTransaction',
|
||||
description: '/docs/references/tablesdb/create-transaction.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_CREATED,
|
||||
|
||||
@@ -37,7 +37,7 @@ class Delete extends TransactionsDelete
|
||||
group: 'transactions',
|
||||
name: 'deleteTransaction',
|
||||
description: '/docs/references/tablesdb/delete-transaction.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_NOCONTENT,
|
||||
|
||||
@@ -37,7 +37,7 @@ class Get extends TransactionsGet
|
||||
group: 'transactions',
|
||||
name: 'getTransaction',
|
||||
description: '/docs/references/tablesdb/get-transaction.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_OK,
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ class Create extends OperationsCreate
|
||||
group: 'transactions',
|
||||
name: 'createOperations',
|
||||
description: '/docs/references/tablesdb/create-operations.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_CREATED,
|
||||
|
||||
@@ -38,7 +38,7 @@ class Update extends TransactionsUpdate
|
||||
group: 'transactions',
|
||||
name: 'updateTransaction',
|
||||
description: '/docs/references/tablesdb/update-transaction.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_OK,
|
||||
|
||||
@@ -37,7 +37,7 @@ class XList extends TransactionsList
|
||||
group: 'transactions',
|
||||
name: 'listTransactions',
|
||||
description: '/docs/references/tablesdb/list-transactions.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_OK,
|
||||
|
||||
Reference in New Issue
Block a user