Installation:
1. Activate CKAN virtual environment:
. /usr/lib/ckan/default/bin/activate
2. Clone and install:
git clone https://github.com/DataShades/ckanext-drupal-api.git
cd ckanext-drupal-api
pip install -e .
pip install -r requirements.txt
3. Add ‘drupal_api’ to ckan.plugins in config file
4. Configure Drupal connection (see config_env_vars)
5. Restart CKAN
#
Requirements:
- CKAN >= 2.10
- Python >= 3.7
#
Configuration:
- Required: ckanext.drupal_api.drupal_url (URL of Drupal instance)
- Optional: timeout, cache duration, HTTP auth, API version, custom endpoints
#
API Versions:
- core: RESTful Web Services (allows custom endpoints)
- json: JSON:API (standard endpoints)
#
Cache Management:
Adjust cache.duration to control synchronization frequency
Lower values = more frequent sync, higher server load
Higher values = less frequent sync, better performance