12. ベストプラクティスの注意点
• 公式ドキュメントより引用:
"next page" links in your HTML do not need to be correlated
to API pages! In fact, it's an indication that you might be doing it
"wrong" if they are.
• JSON:APIの戻り値における「next」と、Webページ上で表示するべき「next
」の内容は意味が異なっており、一対一対応させるようなコードを書くべき
ではないと書かれている。サンプルコードでもその辺りの対処はあった
13. 参考資料
• Pagination | JSON_API module | Drupal Wiki guide on drupal.org
• https://www.drupal.org/docs/core-modules-and-themes/core-
modules/jsonapi-module/pagination