Logistics · deliveries
The deliveries live in an in-house service.
The logistics team wrote it in Python.
FastAPI, fastapi-pagination 0.16.1, 130 deliveries
The problem
The API returns the list page by page.
- page and size in the address.
- The total and the page count in every answer.
What is not changed
The service stays as it is.
- Its API, as the team wrote it.
- No export, no development.
What had to be written
pagination: { kind: fastapi }One line.
- page=1, size=50, then the next ones.
- Reads items, stops at pages.
- A 22-line connector.
Quiet
130 of 130, in three requests.
- page=1, 2, 3, fifty per page.
- 130 rows in the hub.
Too big
500 per page: the library refuses.
- fastapi-pagination caps size at 100.
- Its 422 refusal reaches the run as written.
- Nothing is ingested.
What was fixed
A gap found, a fix.
- Before: size=500 in the path, sent twice, ignored.
- Now: refused at lm apply (#1789).
Try it
The scenario replays locally.
Every step is published with its output.