Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
“GET on Views-Generated Lists.” Drupal.org. 12 February 2018. Accessed 26 April 2018. https://www.drupal.org/docs/8/core/modules/rest/get-on-views-generated-lists
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Preston So
About this chapter
Cite this chapter
So, P. (2018). Using Views with Core REST. In: Decoupled Drupal in Practice. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4072-4_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4072-4_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4071-7
Online ISBN: 978-1-4842-4072-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books