JSON-API & GraphQL
When data needs to be queried or updated from the frontend, Drupal offers plenty of options. Lupus Decoupled Drupal's provided API may be combined with any of these:
JSON-API
Drupal core provides the JSON-API module, which is a RESTful API that works with all Drupal entities (and its access system) out-of-the-box. It comes with support for all CRUD operations, as well as custom queries. Following are the most relevant resources to get started:
- Documentation
- jsonapi-client npm package
- Json:API Extras module - Configure which entities are exposed
- Simple OAuth - Authenticate requests via API token
GraphQL
Alternatively, there are Drupal extension modules that add GraphQL support: