Sample data that holds together
@seed shop-demo
### Create the customer
POST {{crm}}/customers
{ "name": "{{person("cust-42").name}}", "email": "{{person("cust-42").email}}", "amount": {{fake.price}} }
### The same person, in another service
POST {{billing}}/invoices
{ "customer": "{{person("cust-42").name}}", "body": {{json(mock(readJson("./schema.json"), "invoice"))}} }
person(key), address(key) and organization(key) return related fields that stay the same for a key, in any request, against any API. fake.name, fake.email, fake.price and the rest generate single values, and mock(readJson("./schema.json"), "key") builds a whole body from a JSON Schema. @seed makes a run repeatable; the same seed gives the same data tomorrow.
