Get image urls with content API #7139
-
When returning an image asset from the REST API only the original url is included. We have set up glide to generate a number of images from presets and need to find a way to get the url's for these images. The images are generated and put with hashed filenames under storage/statamic/glide/images/filename.jpg/ But when I get the asset from the api the only url included is for the original image. We can not use glide to serve the images with manipulation since we need to have secure mode on. How do I actually get hold of the urls for the preset images? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Customize the resource and add a field that has the url you need. https://statamic.dev/rest-api#customizing-resources |
Beta Was this translation helpful? Give feedback.
Customize the resource and add a field that has the url you need. https://statamic.dev/rest-api#customizing-resources