O'Reilly logo

Drupal 8 Development Beginner's Guide - Second Edition by Kurt Madel, Malabya Tewari, Rakesh James, Krishna Kanth, Edward Crompton, Samuel Keen, Tassos Koutlas, Neeraj Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – getting all the recipe types

This is the list of recipe types I have in my local development server running in Vagrant (http://www.headless.dev):

Time for action – getting all the recipe types

We will create an API URL structured as http://www.headless.dev/recipes, which will give the list of recipes in my site. Let's get started:

  1. We need to enable the Web Services module from the modules page.
  2. Click on Manage in the administration menu bar and then click on Extend.
  3. Once you are on the Modules page, search for RESTful Web Services and Serialization. Enable both these modules:
    Time for action – getting all the recipe types
  4. Next, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required