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
Support the continuation token paging feature of TypeSpec. This applies to unbranded, but there is no reason to make make it work for Azure (Storage needs it if one day we do storage).
Codegen must do the link between those two, and then:
Use the page1 url as base url
Add continuation token extracted from the response.
We will limit ourselves to:
Extraction from response header and response body (JSON path)
Injection as header parameter and query parameter
Which means we should have at least 4 spector scenarios:
Extract from JSON body, inject as query parameter
Extract from JSON body, inject as header parameter
Extract response header, inject as query parameter
Extract response header, inject as header parameter
Note that if the initial operation had optional query parameters that were passed, they stay in the url used for the next page. IOW, whatever url was used for page 1, is the one used as basis for building the next HTTP request.
The content you are editing has changed. Please copy your edits and refresh the page.
Support the continuation token paging feature of TypeSpec. This applies to unbranded, but there is no reason to make make it work for Azure (Storage needs it if one day we do storage).
Doc from TypeSpec:
https://typespec.io/docs/standard-library/pagination/#example-1-using-continuation-token
The concept is that this decorator is used twice:
Codegen must do the link between those two, and then:
We will limit ourselves to:
Which means we should have at least 4 spector scenarios:
Note that if the initial operation had optional query parameters that were passed, they stay in the url used for the next page. IOW, whatever url was used for page 1, is the one used as basis for building the next HTTP request.
Spec
Implementation
The text was updated successfully, but these errors were encountered: