This project is not covered by Drupal’s security advisory policy.
This module focuses on the integration of Open Government Data Public API with Drupal.
CONFIGURATION
------------
* Configure the user permissions in Administration » People » Permissions:
This module provides following permission:
- Administer OGD API Configuration
* Generate OGD API Key -
Please refer following URL (https://data.gov.in/help/how-use-datasets-apis)
* Configure the OGD API Settings in /admin/config/ogd/adminsettings
This module provides configuration form, where user store the OGD API key
and OGD API base URL.
This module provides service, using this service any module will able to
access OGD API and get a response in JSON format.
* You can get list of OGD API from following URL - https://data.gov.in/ogpl_apis
Example :
$service = \Drupal::service('ogd.ogd_request');
$resourseName = 'f001673e-60a7-4a51-9e27-3e001b7d9a19';
$param = [
'offset' => 0,
'limit' => 5,
'filters' => array('district_code' => '02',),
];
$response = $service->request($resourseName, $param);
In the above example, the resource name will be the OGD API that you want to access.
Project information
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - Module categories: Content Editing Experience
- Ecosystem: Data Hub
- Created by maheshkp92 on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.