From 3df04510e1da8f1ad7c26536213eca1487406e02 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Wed, 12 Aug 2026 16:22:10 +0800 Subject: [PATCH] fix(storefront): capture the food truck id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retrieve Food Truck addresses {{food_truck_id}} and nothing set it, so it requested the literal placeholder. Query Food Trucks runs first and is the natural source. Inert until the contract run seeds a food truck — the listing returned [] until now (fleetbase/fleetbase#608). Co-Authored-By: Claude Opus 5 --- .../Food Trucks/Query Food Trucks.request.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/postman/collections/Fleetbase Storefront API/Food Trucks/Query Food Trucks.request.yaml b/postman/collections/Fleetbase Storefront API/Food Trucks/Query Food Trucks.request.yaml index 147cd12..7fcb5d0 100644 --- a/postman/collections/Fleetbase Storefront API/Food Trucks/Query Food Trucks.request.yaml +++ b/postman/collections/Fleetbase Storefront API/Food Trucks/Query Food Trucks.request.yaml @@ -6,4 +6,14 @@ queryParams: limit: "" offset: "" sort: "" +scripts: + - type: afterResponse + code: |- + // Retrieve Food Truck addresses {{food_truck_id}}; nothing set it. + var json_response = pm.response.json(); + + if (Array.isArray(json_response) && json_response.length) { + pm.environment.set("food_truck_id", json_response[0].id); + } + language: text/javascript order: 1000