Hello im using Drupal 9.5.9 version. How can I add the hero section image in the View to REST_API?
I have created an api with Rest_API to fetch data from Views I have created. I have no problem retrieving public data. However, I am getting "null"/"empty"/"id" errors when trying to get the image in the Hero Section in the View. I created two paths to get the images in the view, one to get all the views in the same category (jsonapi/news/) and the other to list the view whose id I entered (jsonapi/news/2775).
Hero sectionfrom the
Fieldssection in the View to get the image, I tried to get the
imgtags by making
Rewrite results > Strip HTML tagsto get the image link properly, but I'm still having problems.
How can i solve this ? Which method i should use ?