Skip to content

【システム】custom_entries Web API の page パラメータが機能しない #4436

Description

@teratai3

概要

公開 Web API GET /baser/api/bc-custom-content/custom_entries.jsonpage クエリパラメータを付けても、2ページ目以降のデータが取得できない(常に先頭から limit 件が返る)。

baserCMS version : 5.2.3

再現手順

前提

  • custom_table_id=4 のカスタムエントリーの記事が複数件存在すること
    ※ テーブルidは任意のテーブル

ページ送りが効かないことを確認

  1. /baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=1 にアクセスする
  2. /baser/api/bc-custom-content/custom_entries.json?custom_table_id=4&limit=3&page=3にアクセスする
  3. page を変えても同じ ID が返ることを確認する

備考

  • 同プラグイン内の CustomContentsService::getIndex() には page 対応がある一方、
    CustomEntriesService::getIndex() には存在しなかった(ドキュメントと実装の不整合)

https://baserproject.github.io/5/web_api/baser_api/bc-custom-content/custom_entries/index

ドキュメントでは使えると書かれているため実装漏れだと思われます。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions