Start building

APIs and SaaS

REST · GET, POST and explicit reply

Retrieve a customer, post a mapped order, and return an explicit 201 response with a business header. In an exported runtime the response is sent only after successful End validation.

  • REST API → REST API
  • Intermediate
  • 4 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

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.

Main processREST · GET, POST and explicit reply5 activities

Scroll sideways to see the whole flow.

Flow diagram of REST · GET, POST and explicit reply5 activities and 4 transitions: Start, GET customer, POST order, Reply with HTTP 201, End.StartstartGET customerhttp.get1POST orderhttp.post2Reply with HTTP 201http.reply3Endend
List the 5 activities and 4 transitions

Activities

  1. Start start
  2. GET customer http.get
  3. POST order http.post
  4. Reply with HTTP 201 http.reply
  5. End end

Transitions

  • Start → GET customer (on success)
  • GET customer → POST order (on success)
  • POST order → Reply with HTTP 201 (on success)
  • Reply with HTTP 201 → End (on success)

Walkthrough

  1. GET customerHTTP GET using the selected shared connection.
  2. POST orderHTTP POST using the selected shared connection.
  3. Reply with HTTP 201Set the HTTP status and response headers. End validates and returns the body; no early response or duplicate replies.

What you will practise

  • Retrieve a customer, post a mapped order, and return an explicit 201 response with a business header. In an exported runtime the response is sent only after successful End validation.
  • Shared connection IDs stay explicit. Simulation uses fixtures; live actions require operator approval.

Sample cases

1 case with 3 assertions, run with python -m server.integration examples --all in simulation.

End-to-end sample

Passed

Execute the actual flow with explicit external fixtures.

Expected result Every activity completes and the expected final result matches.

3/3 assertions

  • Flow completes
  • Final output
  • No unconfirmed receipts

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
REST request. The gallery never activates it; sample runs pass the case input directly.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
  • crm_api http · http.get
  • orders_api http · http.post
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
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
6382b451772db4b6edecda9a658f646b52e96a1db8faac96e0eb7eb77eec2936
Closure SHA-256
b3767d1e43797d4661d21336023c877358662902b82ec2855a387148c383570b
Runtime
1.27.0
Results
1/1 cases, 3/3 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/rest_reply_palette_lab.json
  • server/integration/templates/rest_reply_palette_lab.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_reply_palette_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check