CRUD walkthrough
End-to-end path from a multi-entity.aip to Preview artifacts. Canonical example: examples/blog-crud.aip.
Related: inventory-crud.aip (stock moves + workers) · mysql-minimal.aip (MySQL).
1. App + auth
2. Entities and CRUD
Define the graph, then declarecrud for each resource you want as an HTTP resource:
3. Validation, policy, index, API
/v1/authors, /v1/posts, /v1/comments (and /{id} variants).
4. Seed + light Behavior
5. Validate and emit
INSERT, and OpenAPI CRUD under /v1.
For MySQL:
Checklist
- One
appwithdatabase(+authif needed) - Entities with relations +
crudper resource -
validation/policy/index/apias needed - Optional
seed,workflow,event -
aip validategreen before emit - Review Preview artifacts before shipping
