Pagination and Search Example with Custom Endpoint and Next.js
Lean how to create a custom JSON endpoint to power content like blogs with pagination and search.
Create a custom Search Endpoint
In Manager, open Code, create new file, Select custom
with the name /data/search.json
/data/search.json
Search Usage
You may now make a request to https://www.yoururl.com/data/search.json?q=Your Search
Created a Custom Pagination Endpoints
In Manager, open Code, create new file, Select custom
with the name /data/
pagination.json
/data/pagination.json
Pagination Usage
You may now make a request to https://www.yoururl.com/data/pagination.json?start=0&limit=10
Last updated