Go headless! Decoupling Drupal Commerce with the JSON API Module
There is a lot of talk out there right now about “decoupled” or “headless” open source ecommerce platforms. I won’t get into why that is in this article, but I will show you how easy it is to enable a full REST API for your Drupal 8 and Drupal Commerce platforms in JSON format. It’s literally the enabling of a module, that’s it! Let’s take a look.
In this Acro Media Tech Talk video, you’ll learn a little bit about the module used to expose the API, where to find documentation, and see an additional module that enhances the experience of working with the API. Using our Drupal Commerce demo site as an example, you’ll see where you can view and modify the site resources as well as how to view the data for each resource in JSON format.
The data structure of Drupal is well suited to the JSON API which makes Drupal an excellent choice as a backend content-creation area for a decoupled application. This video will get you started, but what you ultimately do with that data is up to you!