You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add pagination to open api spec for listing of namespaces, tables, views (#9660)
* Add pagination to open api spec for listing of namespaces, tables, views
* Rev for pagination in open api spec
* Fix writing in pagination descriptions
* Use opaque token
* Rev on pagination pr writing
* Rev on pagination pr writing py file
* Rev on description for pageSize
* revise pageToken description
* minor rev and make int for pageSize
* minor rev and remove emtpy val true for pageSize
* use only PageToken instead of NextPageToken
* address jack and nastra comments
* address final comments
* remove they and use min 1 for pageSize
---------
Co-authored-by: Rahil Chertara <rchertar@amazon.com>
Copy file name to clipboardExpand all lines: open-api/rest-catalog-open-api.py
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,13 @@ class Namespace(BaseModel):
77
77
)
78
78
79
79
80
+
classPageToken(BaseModel):
81
+
__root__: str=Field(
82
+
...,
83
+
description='An opaque token which allows clients to make use of pagination for a list API (e.g. ListTables). Clients will initiate the first paginated request by sending an empty `pageToken` e.g. `GET /tables?pageToken` or `GET /tables?pageToken=` signaling to the service that the response should be paginated.\nServers that support pagination will recognize `pageToken` and return a `next-page-token` in response if there are more results available. After the initial request, it is expected that the value of `next-page-token` from the last response is used in the subsequent request. Servers that do not support pagination will ignore `next-page-token` and return all results.',
84
+
)
85
+
86
+
80
87
classTableIdentifier(BaseModel):
81
88
namespace: Namespace
82
89
name: str
@@ -597,10 +604,12 @@ class GetNamespaceResponse(BaseModel):
0 commit comments