Skip to content

REST API

Drupal ships with a built-in RESTful Web Services module that exposes entities as REST resources. This is available in NodeHive but is not NodeHive-specific.

When to use REST

The REST module can be useful for:

  • Simple entity access when you need standard REST endpoints
  • Integrations with systems that expect traditional REST APIs
  • Cases where JSON:API ’s relationship model is more than you need

For most use cases, we recommend the NodeHive Public API (for simple read-only access) or JSON:API (for full CRUD with the nodehive-js client) instead.

Setup

The REST module is included in Drupal core. Enable it and configure resource endpoints at /admin/config/services/rest.

Terminal window
drush en rest serialization

Further Reading