Skip to main content

Try It walkthrough

Prove Stoplight-equivalent Try It on your machine.

Prerequisites

cd SfeyDocs
npm run redis:up
npm run start:all

Wait for [test-rig] SfeyMCP mock listening and compiled successfully.

Steps

  1. Open http://localhost:3000/api-reference?spec=demo.
  2. Expand GET /healthTry it outExecute.
  3. Confirm 200 and JSON such as "status": "ok".
  4. Expand POST /demo/v1/payments → use the example body → Execute.
  5. Confirm 201 with a payment_id.
  6. Optional: click Authorize, enter any value for X-Demo-Key, retry a secured call.

Troubleshooting

SymptomFix
Execute does nothing / network errorDemo mock not running — check terminal for [demo-mock] on port 4010
Explorer says Try It disabledYou are not on localhost — demo Try It is local-only by design
404 on /api-referenceUse dev proxy fix branch; restart npm run start:all

Compare to AFC production spec

Open AFC v2.2 explorer for the full Stoplight-imported spec (Try It remains example-only until sandbox proxy exists).