Creating CAP-Based Services

This commit is contained in:
2026-07-23 18:04:50 +00:00
commit c83b0a545a
14 changed files with 1635 additions and 0 deletions

19
srv/services.cds Normal file
View File

@@ -0,0 +1,19 @@
using {sap.capire.incidents as my} from '../db/schema';
/**
* Service used by support personell, i.e. the incidents' 'processors'.
*/
service ProcessorService {
entity Incidents as projection on my.Incidents;
@readonly
entity Customers as projection on my.Customers;
}
/**
* Service used by administrators to manage customers and incidents.
*/
service AdminService {
entity Customers as projection on my.Customers;
entity Incidents as projection on my.Incidents;
}