Expose Drupal Content to JavaScript Apps with Core JSON:API
Use Drupal core's JSON:API module to serve entities to React or mobile frontends without writing custom REST controllers.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use Drupal core's JSON:API module to serve entities to React or mobile frontends without writing custom REST controllers.
Learn how to enable Drupal’s built‑in JSON:API, craft efficient queries, and secure exposed content for headless applications. A step‑by‑step example shows filtering, sorting, and sparse fieldsets, plus a look at caching trade‑offs.
Drupal's JSON:API module has shipped in core since 8.7, exposing every entity type as a spec-compliant RESTful API with filtering, pagination, sparse fieldsets, and compound documents — zero custom controllers required. Covers a fetch example, access control, cache tags, and production limits.
I am designing a Drupal 10 site where a custom entity type (defined via the Entity API, with two bundles and several fielded sub-resources) must be exposed through both a Views "Entity list" display for site visitors and a JSON:API endpoint provided by the RESTful Web Services module for an external client application. The integration concern is access contr