Becoming increasingly popular, we are seeing websites and applications using a CMS like Drupal as a content management framework that outputs JSON to a static frontend using popular JavaScript Framework, such as Angular, Node, or React. For this chapter, we will look at Drupal's built-in REST API and how we can send data from Drupal to a frontend framework.
This kind of functionality is becoming used more for applications, but a lot of websites are using this too and harnessing the power of Drupal as a content management system.
We will look at using Drupal's built-in REST API and allowing our frontend to read the data and output it by covering the following topics:
- Creating our content type
- Enabling the Drupal core modules needed
- Creating our view to show our content output
- Creating our frontend using React
This chapter will get hands on with...