Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note the response data is accessed using $.data and headers using $.headers

This means that the data seen in the Execution Log on the Response tab is accessed by using $.data.next_page_url

If the API is paginated using the headers then use $.headers.next_page_url

Expand
titleExample of headers
Code Block
"headers": {
        "date": "Fri, 22 Mar 2024 11:56:27 GMT",
        "content-type": "application/json",
        "accept-ranges": "bytes",
        "age": "0",
        "cache-control": "no-cache, max-age=0",
        "server": "AtlassianEdge",
        "vary": "Origin",
        "via": "1.1 varnish (Varnish/6.5)",
        "x-cache": "MISS",
        "x-varnish": "50358678",
        "x-trace-id": "2410a10530b847428ad18f5fee379f3a",
        "x-frame-options": "SameOrigin",
        "x-content-type-options": "nosniff",
        "x-xss-protection": "1; mode=block",
        "atl-traceid": "2410a10530b847428ad18f5fee379f3a",
        "strict-transport-security": "max-age=63072000; preload",
        "report-to": "{\"endpoints\": [{\"url\": \"https://dz8aopenkvv6s.cloudfront.net\"}], \"group\": \"endpoint-1\", \"include_subdomains\": true, \"max_age\": 600}",
        "nel": "{\"failure_fraction\": 0.001, \"include_subdomains\": true, \"max_age\": 600, \"report_to\": \"endpoint-1\"}",
        "transfer-encoding": "chunked"
    }

Breaking path: is the array where the data is located in the response.
There is no need to use $.data as prefix on this because the this checks agains the data response.

...