Module Development

Exposing an API with Drupal for Drupal 7

Check your version

This tutorial covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources

Sprout Video

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?

Views Datasource