data[relationships] node (links to what resources connects to which) and included node (images and variants JSON responses).
This way you can easily control what resources you want to include in the response and
avoid making multiple API calls.
curl --request GET \
--url 'https://demo.spreecommerce.org/api/v2/storefront/products/classic-varsity-top?include=variants%252Cimages' \
--header 'Accept: application/vnd.api+json'
data[relationships] node (links to what resources connects to which) and included node (images and variants JSON responses).
This way you can easily control what resources you want to include in the response and
avoid making multiple API calls.
curl --request GET \
--url 'https://demo.spreecommerce.org/api/v2/storefront/products/classic-varsity-top?include=variants.option_values' \
--header 'Accept: application/vnd.api+json'
Was this page helpful?