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 for Link header based pagination for WebCmdlets
12
+
13
+
Invoke-RestMethod makes it easy to automate against REST APIs.
14
+
The standard for pagination based on https://tools.ietf.org/html/rfc5988#page-6 relies on a response header that you can only get via Invoke-WebRequest and requires each script to parse and utilize.
15
+
16
+
## Motivation
17
+
18
+
REST APIs have a standard for pagination that Invoke-WebRequest and Invoke-RestMethod should adopt to simplify scripts so script authors don't have to write similar code for pagination.
19
+
20
+
## Specification
21
+
22
+
Invoke-WebRequest would expose a RelationLink property in the output object.
23
+
The RelationLink property would be a hash table of the relation links from the Link header.
24
+
The `rel` value would be the key and the URL would be the value in the hash table.
0 commit comments