<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>DataWeave on scarbrough.co.uk</title>
    <link>/categories/dataweave/</link>
    <description>Recent content in DataWeave on scarbrough.co.uk</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 28 Feb 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="/categories/dataweave/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to get a Mulesoft application to page large volumes of data without resetting</title>
      <link>/post/development/mulesoft-api-paging/</link>
      <pubDate>Fri, 28 Feb 2025 00:00:00 +0000</pubDate>
      <guid>/post/development/mulesoft-api-paging/</guid>
      <description>Recently I&amp;rsquo;d been developing a Mulesoft application that uses another as a source API. The response from the source API looks something like this:&#xA;{&#xD;&amp;#34;nextLink&amp;#34;: &amp;#34;https://server:port/external-api/endpoint?page=1&amp;#34;,&#xD;&amp;#34;nextOffset&amp;#34;: 1000,&#xD;&amp;#34;morePages&amp;#34;: true,&#xD;&amp;#34;totalRows&amp;#34;: 12345,&#xD;&amp;#34;totalPages&amp;#34;: 13,&#xD;&amp;#34;results&amp;#34;:&#xD;[&#xD;{...}&#xD;]&#xD;} There are a few things that could potentially be used for paging the response data. As a .NET engineer, I would have approached it by using a While or Until loop on &amp;lsquo;morePages: true&amp;rsquo;, used the nextLink URI and appended the response payload to a typed list.</description>
    </item>
  </channel>
</rss>
