add_resource
Add a resource (collection) to a project and seed it with realistic fake data. Either pass template (one of the built-ins, e.g. users, products, posts, comments, orders, todos, reviews, customers, events) or fields: an array of {name, type} where type ∈ uuid|firstName|lastName|fullName|username|email|avatar|image|word|words|title|sentence|paragraph|number|price|percent|boolean|date|pastDate|futureDate|url|domain|ip|phone|city|country|address|zipCode|company|jobTitle|color|latitude|longitude|rating|age|slug|status|category|refId, plus {name, type:"oneOf", values:[...]} for enums. seed = number of records to generate (default 20, max 100, 0 = empty).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Resource name, plural (e.g. products). | |
| seed | No | Records to seed (default 20, max 100). | |
| fields | No | Array of {name, type} (or {name, type:'oneOf', values:[…]}). Optional. | |
| project | Yes | Project id. | |
| adminKey | Yes | The project's adminKey. | |
| template | No | Built-in template name. Optional (use this OR fields). |