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
@@ -954,8 +955,9 @@ Client-driven paging enables clients to request only the number of resources tha
954
955
955
956
Sorting and Filtering parameters MUST be consistent across pages, because both client- and server-side paging is fully compatible with both filtering and sorting.
956
957
957
-
#### 9.8.1. Server-driven paging
958
-
Paginated responses MUST indicate a partial result by including a continuation token in the response.
958
+
#### 9.8.1. Continuation tokens
959
+
960
+
Paginated responses MUST indicate a partial result by including a continuation token in the response using the OData control information `@nextLink`.
959
961
The absence of a continuation token means that no additional pages are available.
960
962
961
963
Clients MUST treat the continuation URL as opaque, which means that query options may not be changed while iterating over a set of partial results.
The `@nextLink` MAY be populated using either server-driven paging or client-driven paging (`@nextLink`s generated using client-driven paging should not include the `$top` query parameter).
982
+
983
+
#### 9.8.2. Server-driven paging
984
+
985
+
The server MAY provide server-driven paging by populating the continuation token with a `$skiptoken` query parameter.
986
+
The `$skiptoken` value is opaque for clients and its structure should not be assumed.
987
+
`$skiptoken` values SHOULD expire after some period of time decided by the server.
Clients MAY use _$top_ and _$skip_ query parameters to specify a number of results to return and an offset into the collection.
981
1021
982
1022
The server SHOULD honor the values specified by the client; however, clients MUST be prepared to handle responses that contain a different page size or contain a continuation token.
Copy file name to clipboardExpand all lines: graph/GuidelinesGraph.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,8 +237,9 @@ Microsoft Graph APIs should support basic query options in conformance with ODat
237
237
|:heavy_check_mark:**MUST** support `$select on resource` to enable properties projection. |
238
238
|:ballot_box_with_check:**SHOULD** support `/entityTypeCollection/{id}?$expand=navProp1` option for navigation properties of entities. |
239
239
|:ballot_box_with_check:**SHOULD** support `$filter` with `eq` and `ne` operations on properties of entity collections. |
240
-
|:heavy_check_mark:**MUST** support [server-driven pagination](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#981-server-driven-paging) of collections using a [nextLink](http://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_ControlInformationnextLinkodatanextL). |
241
-
|:ballot_box_with_check:**SHOULD** support [client-driven pagination](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#982-client-driven-paging) of collections using `$top` and `$skip` (or `$skipToken`). |
240
+
|:heavy_check_mark:**MUST** support pagination of collections (of entity types or complex types) using a [nextLink](http://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_ControlInformationnextLinkodatanextL). |
241
+
|:ballot_box_with_check:**MAY** support [server-driven pagination](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#981-server-driven-paging) of collections using `$skiptoken`. |
242
+
|:ballot_box_with_check:**SHOULD** support [client-driven pagination](https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#982-client-driven-paging) of collections using `$top` and `$skip`. |
242
243
|:ballot_box_with_check:**SHOULD** support `$count` for collections. |
243
244
|:ballot_box_with_check:**SHOULD** support sorting with `$orderby` both ascending and descending on properties of the entities. |
0 commit comments