Fixed wrong paths
This commit is contained in:
parent
19e9a138e4
commit
5ec5649603
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue