APIClientInterface
interface APIClientInterface (View source)
A service responsible for communicating with a CKAN API endpoint
Constants
API_VERSION |
The CKAN API version to communicate with |
Methods
Performs a request to the CKAN API for the given Resource and returns the result. Uses the endpoint for "package_show".
Performs a request to the CKAN API for the given Resource and returns the raw data result. Uses the endpoint for "datastore_search".
Details
array
getData(Resource $resource, string $action = 'datastore_search', string $id = 'Identifier')
Performs a request to the CKAN API for the given Resource and returns the raw data result
array
getPackage(Resource $resource)
Performs a request to the CKAN API for the given Resource and returns the result. Uses the endpoint for "package_show".
array
getSearchData(Resource $resource)
Performs a request to the CKAN API for the given Resource and returns the raw data result. Uses the endpoint for "datastore_search".