Marketplace API example
The bundled samples/marketplace/ project models a two-sided marketplace:
- 3 actors: admin (email + password), vendor (email + password + refresh), customer (phone + OTP chain)
- 5 resources: products, cart, orders, refunds, reviews
- 27 operations covering the full e-commerce flow
Try it:
chainapi lint --project samples/marketplacechainapi run refund.approve --project samples/marketplaceThe repository structure: see samples/marketplace/ in the source tree.
Full annotated walkthrough is part of Phase 2 documentation.