Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
See: http://docs.ckan.org/en/latest/api.html#ckan.logic.action.get.package_show
The id for this should be the uuid, not the alias.
This should also mirror rest/dataset/{id}
Steps:
- Create two custom menu items
- Create callbacks that call the dkan_dataset_resources_json view grabbing the nid for the uuid supplied as the argument
- Return "not found" if nid is not from a dataset
- Update the dkan_dataset_resources_json view so that it isn't a page anymore and is just a master display
- Check to verify that the output is compatible with the CKAN API
- Update dkan_sitewide block to reflect change from node/%/json endpoint to api/action/package_show?uuid=%
Comments
Comment #1
acouch CreditAttribution: acouch commentedComment #2
acouch CreditAttribution: acouch commentedComment #3
acouch CreditAttribution: acouch commentedComment #4
Krista Brenner CreditAttribution: Krista Brenner commentedComment #5
drkloc CreditAttribution: drkloc commentedComment #6
drkloc CreditAttribution: drkloc commentedThis is fixed
Comment #8
acouch CreditAttribution: acouch commented