Allow to define count JSONPath

Created on 7 March 2025, 4 days ago

Problem/Motivation

The current JsonAPI Client hides the configuration to set a JSONPath to fetch the entities count with the reasoning:

Since the default JSON:API does not provide a mean to get the total number of available entities...

Which is kinda fair but neglects the possibility that we might not deal with the default JSON:API but e.g. in Drupal one that uses JSON:API Extras - which adds that meta information if configured so.

Proposed resolution

Still allow to set the data path to read out the entities count.

Remaining tasks

  1. Write code
  2. Review

User interface changes

New data-path section in the JsonAPI config form.

API changes

None

Data model changes

None

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇭Switzerland das-peter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024