Problem/Motivation

Drupal's JSON:API ecosystem benefits from tooling that helps clients build valid JSON:API query parameters such as fields, filter, include, sort, and pagination parameters.

A JavaScript package already exists for this purpose, but there is currently no equivalent drupal-jsonapi-params package available for Python/FastAPI projects.

This makes it harder for Python applications, especially FastAPI-based services, to construct Drupal JSON:API requests consistently and in a reusable way.

Python and FastAPI users currently need to manually build these query parameters, which can lead to duplicated code, inconsistent request formatting, and a higher chance of mistakes when integrating with Drupal's JSON:API.

Proposed resolution

Provide a Python/FastAPI equivalent of the existing JavaScript drupal-jsonapi-params package.

The Python package ports the same core idea into the Python ecosystem, allowing FastAPI and other Python applications to generate JSON:API query parameters more easily when working with Drupal.

This issue proposes documenting and linking the Python implementation from the Drupal project issue so that Python/FastAPI developers working with Drupal JSON:API can discover and use it.

Relevant repository:


Python/FastAPI drupal-jsonapi-params repository

Comments

vincenzo gambino created an issue.