The CAP Cookbook
Guides and Recipes for Common Tasks
The following figure illustrates a walkthrough of the most prominent tasks within CAP's universe of discourse (aka scope). The guides contained in this section provide details and instructions about each.
- Domain Modeling
- Most projects start with capturing the essential objects of their domain in a respective domain model. Find here an introduction to the basics of domain modeling with CDS, complemented with recommended best practices.
- Providing Services
- This guide introduces how to define and implement services, leveraging generic implementations provided by the CAP runtimes, complemented by domain-specific custom logic.
- Consuming Services
- Learn how to use uniform APIs to consume local or remote services.
- Events & Messaging
- CAP provides intrinsic support for emitting and receiving events. This is complemented by Messaging Services connecting to message brokers to exchange event messages across remote services.
- Databases
- This guide provides instructions on how to use databases with CAP applications. Out of the box-support is provided for SAP HANA, SQLite, H2 (Java only), and PostgreSQL.
- Localization, i18n
- Guides you through the steps to internationalize your application to provide localized versions with respect to both Localized Models as well as Localized Data.
- Localized Data
- This guide extends the localization/i18n of static content, such as labels or messages, to serve localized versions of actual application data.
- Temporal Data
- CAP provides out-of-the-box support for declaring and serving date-effective entities with application-controlled validity, in particular to serve as-of-now and time-travel queries.
- Security
- This guide teaches how to how to develop, deploy and operate CAP applications in a secure way.
- Data Privacy
- CAP helps application projects to comply with data privacy regulations using SAP Business Technology Platform (BTP) services.