1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Merge pull request #3428 from appwrite/fix-response-model-for-database-list

fix-response-model-for-database-list
This commit is contained in:
Torsten Dittmann 2022-06-24 11:27:33 +02:00 committed by GitHub
commit aec4870b51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ App::get('/v1/databases')
->label('sdk.description', '/docs/references/databases/list.md')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_COLLECTION_LIST)
->label('sdk.response.model', Response::MODEL_DATABASE_LIST)
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
->param('limit', 25, new Range(0, 100), 'Maximum number of collection to return in response. By default will return maximum 25 results. Maximum of 100 results allowed per request.', true)
->param('offset', 0, new Range(0, APP_LIMIT_COUNT), 'Offset value. The default value is 0. Use this param to manage pagination. [learn more about pagination](https://appwrite.io/docs/pagination)', true)