clarity-h2020 / csis-helpers-module

CSIS Helpers Drupal Module
GNU General Public License v3.0
1 stars 0 forks source link

Get Node UUID #5

Closed p-a-s-c-a-l closed 5 years ago

p-a-s-c-a-l commented 5 years ago

CSIS Helper Modules retrieved the id of the node which is fine for Legacy REST API, but for making requests to the JSON:API (e.g. GET '/jsonapi/node/report_image/ff1f3c94-abbd-43bc-90d8-c61e7dad6dac/') we need the UUID.

therter commented 5 years ago

@fgeyer16 I need also the UUID to requesting the study with the new version of the json-API.

fgeyer16 commented 5 years ago

I added the uuid of study and step to the csisHelpers.entityinfo object. You can get them by csisHelpers.entityinfo.study_uuid and csisHelpers.entityinfo.step_uuid