JSE

Categories

Component ID

2713857

Component name

JSE

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

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.