CAP entity scaffold (all layers)
cap_scaffold_entityGenerate complete SAP CAP entity scaffolding including CDS model, service projection, annotations, mock CSV, and i18n. Returns content ready to write and validate.
Instructions
Generates the complete scaffolding of a CAP entity following the loaded conventions: CDS model, service projection, annotations.cds (labels + UI.LineItem), mock CSV header and i18n in two languages. Returns the content so you write it with cap_write_files and validate it with cap_validate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Enable Fiori draft (@odata.draft.enabled) on the service. Defaults to false. | |
| entity | Yes | Entity name in PascalCase | |
| fields | Yes | Entity fields (without the technical ID key) | |
| managed | No | Use cuid+managed aspects (UUID key + audit fields). Defaults to true. | |
| service | Yes | Name of the service that will expose it | |
| namespace | Yes | Model namespace, e.g. ACME |