Website · Drupal
The site's content lives in Drupal.
It must be read, all of it, with no development.
Demo Drupal site
The problem
Every API pages its own way.
- Writing the paging by hand is a source of errors.
- Drupal follows a standard: JSON:API.
What is not changed
Drupal stays as it is.
- Its core JSON:API module, switched on.
- No module added, no code.
What had to be written
pagination: { kind: json-api }Name the standard.
One 23-line connector.
Red
The replay found a defect.
- Drupal writes the next link as an object.
- The preset did not follow it: fixed (icreated/lumnik#1638).
Green
45 articles, 5 pages.
- Each next page read from links.next.
- Each article keyed by its Drupal id.
The limit
The hub reads what the API publishes.
- Unpublished content is not read without an account.
- Drupal publishes no total: no witness of the count.
Try it
The scenario replays locally.
A real Drupal 11, every step published with its output.