Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
JSE (JSON slimmed entity) let's you create API endpoints with a hook
function MODULE_jse_info() {
return array(
'projects' => array(
'label' => t('Projects'),
'callback' => 'example_get_jse_entity_ids',
)
);
}
function example_get_jse_entity_ids() {
return array(
'node' => array(1, 5, 56),
'user' => array(23, 1)
);
}
The result will be a JSON output with the nodes rendered by the view mode json.
Supporting organizations:
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Content Editing Experience, Developer Tools
- Created by danielbeeke on , updated