Vendure · Example Payload

Vendure Asset Preview Example

Example: fetch a 300px wide WebP preview of a product image from the Vendure Asset Server.

CommerceHeadless CommerceeCommerceGraphQLOpen SourceTypeScriptNestJSB2BB2CStorefrontPlugins

Vendure Asset Preview Example is an example object payload from Vendure, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionrequestresponse

Example Payload

Raw ↑
{
  "description": "Example: fetch a 300px wide WebP preview of a product image from the Vendure Asset Server.",
  "request": {
    "method": "GET",
    "url": "http://localhost:3000/assets/source/91/demo-product.jpg?preset=thumb&w=300&format=webp"
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "image/webp",
      "Cache-Control": "public, max-age=31536000, immutable",
      "ETag": "\"f1a2b3c4d5e6\""
    },
    "body": "<binary image bytes>"
  }
}