概要
公開 Web API GET /baser/api/bc-custom-content/custom_entries.json に page クエリパラメータを付けても、2ページ目以降のデータが取得できない(常に先頭から limit 件が返る)。
baserCMS version : 5.2.3
再現手順
前提
custom_table_id=4 のカスタムエントリーの記事が複数件存在すること
※ テーブルidは任意のテーブル
ページ送りが効かないことを確認
/baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=1 にアクセスする
/baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=3にアクセスする
- page を変えても同じ ID が返ることを確認する
備考
- 同プラグイン内の
CustomContentsService::getIndex() には page 対応がある一方、
CustomEntriesService::getIndex() には存在しなかった(ドキュメントと実装の不整合)
https://baserproject.github.io/5/web_api/baser_api/bc-custom-content/custom_entries/index
ドキュメントでは使えると書かれているため実装漏れだと思われます。
概要
公開 Web API
GET /baser/api/bc-custom-content/custom_entries.jsonにpageクエリパラメータを付けても、2ページ目以降のデータが取得できない(常に先頭からlimit件が返る)。baserCMS version : 5.2.3
再現手順
前提
custom_table_id=4のカスタムエントリーの記事が複数件存在すること※ テーブルidは任意のテーブル
ページ送りが効かないことを確認
/baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=1にアクセスする/baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=3にアクセスする備考
CustomContentsService::getIndex()にはpage対応がある一方、CustomEntriesService::getIndex()には存在しなかった(ドキュメントと実装の不整合)https://baserproject.github.io/5/web_api/baser_api/bc-custom-content/custom_entries/index
ドキュメントでは使えると書かれているため実装漏れだと思われます。