From 5ec56496034e1341f33ddc3f60090b21582d0b1c Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 18 Jul 2021 11:19:23 +0300 Subject: [PATCH] Fixed wrong paths --- app/controllers/api/database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 87d70167d1..7fe985b502 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -299,7 +299,7 @@ App::post('/v1/database/collections/:collectionId/attributes') $response->dynamic2($attribute, Response::MODEL_ATTRIBUTE); }); -App::get('v1/database/collections/:collectionId/attributes') +App::get('/v1/database/collections/:collectionId/attributes') ->desc('List Attributes') ->groups(['api', 'database']) ->label('scope', 'attributes.read') @@ -337,13 +337,13 @@ App::get('v1/database/collections/:collectionId/attributes') ]), Response::MODEL_ATTRIBUTE_LIST); }); -App::get('v1/database/collections/:collectionId/attributes/:attributeId') +App::get('/v1/database/collections/:collectionId/attributes/:attributeId') ->desc('Get Attribute') ->groups(['api', 'database']) ->label('scope', 'attributes.read') ->label('sdk.namespace', 'database') ->label('sdk.platform', [APP_PLATFORM_SERVER]) - ->label('sdk.method', 'listAttributes') + ->label('sdk.method', 'getAttribute') ->label('sdk.description', '/docs/references/database/get-attribute.md') ->label('sdk.response.code', Response::STATUS_CODE_OK) ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) @@ -530,7 +530,7 @@ App::post('/v1/database/collections/:collectionId/indexes') }); -App::get('v1/database/collections/:collectionId/indexes') +App::get('/v1/database/collections/:collectionId/indexes') ->desc('List Indexes') ->groups(['api', 'database']) ->label('scope', 'indexes.read') @@ -568,13 +568,13 @@ App::get('v1/database/collections/:collectionId/indexes') ]), Response::MODEL_INDEX_LIST); }); -App::get('v1/database/collections/:collectionId/indexes/:indexId') +App::get('/v1/database/collections/:collectionId/indexes/:indexId') ->desc('Get Index') ->groups(['api', 'database']) ->label('scope', 'indexes.read') ->label('sdk.namespace', 'database') ->label('sdk.platform', [APP_PLATFORM_SERVER]) - ->label('sdk.method', 'listIndexes') + ->label('sdk.method', 'getIndex') ->label('sdk.description', '/docs/references/database/get-index.md') ->label('sdk.response.code', Response::STATUS_CODE_OK) ->label('sdk.response.type', Response::CONTENT_TYPE_JSON)