Backend and Infrastructure

Building a Solid API for Drupal 7, 8, 9, and 10

There's been a lot written about API design, it's probably not surprising there are several books written about the subject. It also seems like nearly every cloud-based service provides an API to allow access to your data. In this tutorial, we'll attempt to condense this information and answer the following questions:

  • Are there different types of API paradigms?
  • What kinds of considerations do we need to make when building an API for our decoupled site?
  • And, what's this REST thing everyone is talking about?

Let's dig into those questions one at a time.