© Preston So 2018
Preston SoDecoupled Drupal in Practicehttps://doi.org/10.1007/978-1-4842-4072-4_11

11. Using Views with Core REST

Preston So1 
(1)
Ridgewood, NY, USA
 

Sometimes, the core REST API isn’t adequate for your needs, whether due to the fact that it is ill-equipped to issue collections of resources or because you cannot get out of Drupal the information that you require in your consumer. Many of the same motivations that lead decision makers to choose Drupal as a CMS—namely the Views module and its flexible query building—transfer to decoupled Drupal implementations as well. Fortunately, Views contains a REST export display type that can be employed to provide custom-designed, read-only APIs.

Using Views for Content Listings

For those less ...

Get Decoupled Drupal in Practice: Architect and Implement Decoupled Drupal Architectures Across the Stack now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.