With the inclusion of JSON:API in Drupal core, we now have a solid, stable path to support decoupled Drupal through standardization of payload structures and query string parameters.
This session will cover:
Why JSON:API instead of the REST module, GraphQL, Relaxed WS, etc.
JSON:API overview
Authentication with JSON Web Tokens
Requests, filters, sorting, pagination
File uploads
Gotchas
14. Why not core GraphQL?
• Often requires extra infrastructure
• Clients often require additional libraries
• Extra work to be able to use CDNs and browser caches
• Each implementation dictates how writes are handled; there is
no standard
• GraphQL queries can get very large making GET requests
impossible to cache
• Servers require their own tooling to support the full benefit of
GraphQL
• May require additional permissions, configuration, and custom
code