SAP CAP (Cloud Application Programming Model)
SAP's opinionated, model-driven framework for building cloud applications with a unified data model spanning Node.js and Java.
CAP is SAP's framework for building cloud applications on BTP. Its premise is that you describe the model and the framework produces most of the application.
CAP is like an architect's parametric building-design software - you declare the building's structure and rooms (the CDS model) once, and the software automatically generates the wiring, plumbing, and staircases (the working OData service) for you, letting you focus your actual effort on the custom features (event handlers) that make this particular building different, while still being able to preview it cheaply on a small scale model (SQLite) before building the real, full-scale version (HANA Cloud) from the identical blueprint.
Key Concepts
entity Orders {
key ID : UUID;
customer : Association to Customers;
amount : Decimal(15,2);
status : String(10);
} service SalesService {
entity Orders as projection on db.Orders;
} srv.before('CREATE', 'Orders', (req) => {
if (req.data.amount <= 0) req.error(400, 'Amount must be positive');
}); srv.after('READ', 'Orders', (orders) => { /* enrich */ }); local development SQLite, starts instantly, no cloud needed
production SAP HANA Cloud