APIs and SaaS
REST inventory → JSON result
Map an order ID into a REST request, read a fixture response and render JSON. A matching WADL sample is included for the contract importer.
Last verified 2026-10-31 at f4ce7d0 — simulation fixtures
Studio activation is a one-time payment of USD 20.
Flow
Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.
Scroll sideways to see the whole flow.
List the 4 activities and 3 transitions
Activities
- REST input
start - Invoke inventory REST
http.request - Render response JSON
json.render - Return result
end
Transitions
- REST input → Invoke inventory REST (on success)
- Invoke inventory REST → Render response JSON (on success)
- Render response JSON → Return result (on success)
Walkthrough
- Map the requestThe order ID maps into /orders/{id}; the fixture key uses the template path.
- Render the responseSerialize the simulated inventory API body to JSON.
What you will practise
- Inspect path-parameter mappings and REST response data.
- Use deterministic HTTP fixtures, including a server-error case.
- Open the included WADL contract in the existing importer.
Sample cases
2 cases with 7 assertions, run with python -m server.integration examples --all in simulation.
Order available
PassedThe sample endpoint returns an available order.
Expected result A JSON response containing ORD-1042 and available: true.
4/4 assertions
- Process completes in simulation
- Order ID matches input
- Inventory is available
- HTTP request was simulated
This sample run only; not a production certification.
API unavailable
Expected failure verifiedA supplied HTTP 503 demonstrates a visible failed request.
Expected result http_error_status is recorded; the renderer is not executed.
3/3 assertions
- Expected failure is recorded
- HTTP failure code is captured
- No success response is rendered
This sample run only; not a production certification.
Prerequisites
- Runtime
- Cohuno runtime 1.27.0, the version recorded when these cases last passed.
- Starter
- Manual start; no listener.
- Optional dependencies
- None beyond the base runtime.
- Simulation fixtures
demo_httphttp · http.request
Verification details
Provenance
What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.
Verified content
- Pack SHA-256
0ae011921148405dbab92dd2f771fb575883aa6ecf5107c364a299da3bd74509- Closure SHA-256
81501a772fc3299345a6fe1afc9ab1b27b87ba48708c06df8d4c9a484ff9c121- Runtime
1.27.0- Results
- 2/2 cases, 7/7 assertions, mode simulate, external calls: none.
- Files in the closure
server/integration/example_packs/rest_lookup.jsonserver/integration/templates/rest_inventory.json
Verification event
- Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34- Verified at (UTC)
2026-10-31T21:19:21Z
How the Cohuno team reproduces this check
PYTHONPATH=. python -m server.integration examples --example rest_lookup PYTHONPATH=. python scripts/export_public_gallery.py --check