Skip to main content

Using Views with Core REST

  • Chapter
  • First Online:
Decoupled Drupal in Practice
  • 918 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Preston So

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics