Currently, I am retrieving a JSON Object from an API with a limit of 200. The process involves fetching the initial 200 like this:
https://testapi.com/posts.json
In our application, we have implemented pagination with 10 posts per page. When we reach page 20, the API URL automatically changes to:
https://testapi.com/posts-2.json
The challenge I am facing revolves around efficiently pulling back posts when a filter is applied. Users can input filters, triggering a JavaScript filter method on the JSON object. However, I am unsure how to structure the app to handle filtering across multiple API URLs and combine the filtered results for display.
To retrieve data from the API, I am utilizing Axios.