mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
added admin auth to the index creation
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ class Create extends IndexCreate
|
||||
group: $this->getSdkGroup(),
|
||||
name: 'createIndex',
|
||||
description: '/docs/references/vectordb/create-index.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_ACCEPTED,
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class Delete extends IndexDelete
|
||||
group: $this->getSdkGroup(),
|
||||
name: 'deleteIndex', // getName needs to be different from parent action to avoid conflict in path name
|
||||
description: '/docs/references/vectordb/delete-index.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_NOCONTENT,
|
||||
|
||||
@@ -38,7 +38,7 @@ class Get extends IndexGet
|
||||
group: $this->getSdkGroup(),
|
||||
name: 'getIndex', // getName needs to be different from parent action to avoid conflict in path name
|
||||
description: '/docs/references/vectordb/get-index.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_OK,
|
||||
|
||||
@@ -39,7 +39,7 @@ class XList extends IndexXList
|
||||
group: $this->getSdkGroup(),
|
||||
name: 'listIndexes', // getName needs to be different from parent action to avoid conflict in path name
|
||||
description: '/docs/references/vectordb/list-indexes.md',
|
||||
auth: [AuthType::KEY],
|
||||
auth: [AuthType::ADMIN, AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: SwooleResponse::STATUS_CODE_OK,
|
||||
|
||||
Reference in New Issue
Block a user