Overview
Retrieve a paginated list of products from the Juadah bakery catalog. This endpoint supports infinite scrolling by using cursor-based pagination with thelast_id parameter.
Endpoint
Authentication
This endpoint requires authentication via cookie-based session.The ID of the last product from the previous page. Provide this to fetch the next 50 products. For example, if you provide
last_id=50, you’ll receive products 51-100.Response
Response status. Returns
"success" for successful requests.Response data containing products and metadata.
Pagination metadata.
The ID of the last product in the current response. Use this as
last_id in the next request for pagination.Example Request
Initial Request (First Page)
Paginated Request (Next Page)
Example Response
Success Response (200)
Error Response (404)
Returned when no products are found.Implementation Notes
- Each request returns up to 50 products
- Products are returned in order by ID
- Use the
lastProductIdfrom the response as thelast_idparameter for the next request - If no
last_idis provided, the first 50 products are returned - A 404 response indicates there are no more products to fetch