ckanext-validationapi
This plugin belongs to a set of plugins for the Datenregister – the non-public CKAN instance that is part of Berlin’s open data portal daten.berlin.de.
ckanext-validationapi provides an API as a public wrapper around the internal validator functions of CKAN.
The plugin implements the following CKAN interfaces:
- IBlueprint
- IConfigurer
Requirements
This plugin has been tested with CKAN 2.9 (which requires Python 3).
Using the API
All validator functions that are available through ckan.plugins.toolkit.get_validator() can be used. The API is accessible via $CKAN_URL/api/validation; currently its only method is validate.
Only POST requests with content type application/json are accepted.
The expected payload to validate is a JSON object with two attributes:
- validator: The name of the validator
- value: The value we want to submit for validation
The response includes: validator, value, success, and either result or message.
License
AGPL v3.0, copyright BerlinOnline GmbH.