Mock API recipes

Starter patterns for contract-accurate fake backends.

Checkout flow

POST cart items, GET order status, PATCH payment state โ€” stateful collection on /orders.

curl -X POST "$BASE/orders" -H "Content-Type: application/json" -d '{"total":42,"status":"pending"}'

Auth profile

GET /me returns schema-shaped user profile; PATCH updates stored item by id.

curl "$BASE/users/42"

Paginated list

GET collection honors ?count= when seeding an empty store; Pro unlocks larger stores.

curl "$BASE/products?count=20"

Import your own OpenAPI in the app under Mock APIs โ†’ Import OpenAPI project.