Spree REST API does not returns product images URLs when I request products list on /api/products.json.
Can I generate image URL or get it somehow else or I need to edit Spree source?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Skayred,
You will have to extend the Spree source in order to get this information reliably.
It’s probably as simple as overriding the object_serialization_options the Api Products Controller. I believe adding the following to an override should work.