Skip to content

Commit 63832fb

Browse files
authored
Add pagination to ListBackups (#172)
* Add pagination to ListBackups Including a total count (so a scrollbar or progressbar can be displayed if needed). * Fixed typo * Addressed review remarks * Renamed field
1 parent c3adf44 commit 63832fb

7 files changed

Lines changed: 222 additions & 71 deletions

File tree

gen/go/qdrant/cloud/cluster/backup/v1/backup.pb.go

Lines changed: 65 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/cluster/backup/v1/backup.swagger.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,21 @@
223223
"in": "query",
224224
"required": false,
225225
"type": "string"
226+
},
227+
{
228+
"name": "pageSize",
229+
"description": "Maximum number of items to return.\nIf not specified, all items are returned.",
230+
"in": "query",
231+
"required": false,
232+
"type": "integer",
233+
"format": "int32"
234+
},
235+
{
236+
"name": "pageToken",
237+
"description": "A page token, received from a previous call.\nProvide this to retrieve the subsequent page.\nWhen paginating, all other parameters provided to the request must match\nthe call that provided the page token.",
238+
"in": "query",
239+
"required": false,
240+
"type": "string"
226241
}
227242
],
228243
"tags": [
@@ -876,7 +891,16 @@
876891
"type": "object",
877892
"$ref": "#/definitions/v1Backup"
878893
},
879-
"description": "The actual backups in this list."
894+
"description": "The actual backups in this list.\nWhen pagination is used it contains a single page only, not all items."
895+
},
896+
"totalSize": {
897+
"type": "integer",
898+
"format": "int32",
899+
"description": "The total number of items available (useful in relation with pagination).\nThis field is fill out when pagination is used (aka in the request `page_size` was provided)."
900+
},
901+
"nextPageToken": {
902+
"type": "string",
903+
"description": "A token that can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages."
880904
}
881905
},
882906
"title": "ListBackupsResponse is the response from the ListBackups function"

0 commit comments

Comments
 (0)