Exposing an API with Drupal

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:04
    In order to build a Decoupled Drupal site,
  • 0:06
    we're going to need to expose the data
  • 0:07
    from our site with an API.
  • 0:09
    Let's take a quick look at a few methods
  • 0:11
    we can use to build out the API.
  • 0:13
    In this lesson, we'll take a brief look
  • 0:15
    at three different methods for creating an API
  • 0:17
    and exposing data from our Drupal site.
  • 0:19
    We'll start with the easiest method, using Views Datasource.
  • 0:22
    Next, we'll write some custom code
  • 0:04
    Para poder construir um site Drupal dissociado,
  • 0:06
    precisaremos expor os dados
  • 0:07
    do nosso site com uma API.
  • 0:09
    Vamos dar uma rápida olhada em alguns métodos
  • 0:11
    que podemos usar para construir a API.
  • 0:13
    Nessa lição, iremos dar uma breve olhada
  • 0:15
    em três diferentes métodos para criar uma API
  • 0:17
    e expor dados do nosso site Drupal.
  • 0:19
    Iremos começar com o método mais fácil, usando Views Datasource.
  • 0:22
    Depois, iremos escrever código customizado
Loading ...

Exposing an API with Drupal

Loading...

In this tutorial, I'll show you a few ways we can create a basic API by exposing data from our Drupal site.

The methods I'll use include:

Self-check question: In what situations would you consider using each of these approaches?

Downloads: 
Log in or sign up to download companion files.
Additional resources: