Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Drupal 8 Blueprints

You're reading from   Drupal 8 Blueprints Step along the creation of 7 professional-grade Drupal sites

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781785887567
Length 262 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
 Burrows Burrows
Author Profile Icon Burrows
Burrows
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Title Page
Credits
About the Author
About the Reviewer
www.Packtpub.com
Customer Feedback
Preface
1. Introduction and Getting Set Up FREE CHAPTER 2. Telling Your Own Story with Drupal 3. Get Fundraising with Drupal 4. Recruit Using Drupal 5. List Properties with Drupal 6. Express Your Event with Drupal 7. Get Teaching with Drupal 8. Go Static with Drupal

Getting started


In order for us to start, we require to have a clean Drupal 8.x installation.

Once this is set up, we will create our content type. For this chapter, we want to show some cars on our frontend.

In Drupal 8, we have the ability to use REST within Drupal core this means we don't need to develop this functionality as its available within Drupal 8 core just by enabling a few core modules, which we will cover in this chapter.

What is REST?

When we create a web service, we want to allow applications to access that data using a web service. REST stands for Representational State Transfer and it is a way that allows a request over HTTP to be actioned, whether it's GET, POST, PUT, or DELETE.

An example of this is we have a lot of data exposed using REST and it is output to a URL into a JSON format. We can access that data by going to a URL we create; these are known as endpoints and can be any type of URL, for example, /api/cars. What we will see is data from our system formatted in JSON...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images