Deploy on BTP (#793)
minimal changes required to deploy the CAP samples in _shared db_ mode: - db: all bookshop, orders, reviews CDS models into one db instance (_shared-db_) - services: bookstore, orders, reviews - approuter with UI symlinks: - Vue: bookshop, reviews - Fiori: orders - authentification: xsuaa - messaging: Event Mesh - destinations: orders, reviews - cds: - projection OrdersNoDraft for backend direct access - event OrderChanged - deployment: mta.yml
This commit is contained in:
committed by
GitHub
parent
ac4154eef3
commit
737e766d53
@@ -1,2 +1 @@
|
||||
cds.requires.messaging.kind = file-based-messaging
|
||||
PORT = 4006
|
||||
@@ -2,7 +2,18 @@
|
||||
"name": "@capire/orders",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@cap-js/hana": "^1",
|
||||
"@capire/common": "*",
|
||||
"@sap/cds": ">=5"
|
||||
"@sap/cds": ">=5",
|
||||
"@sap/xssec": "^4"
|
||||
},
|
||||
"cds": {
|
||||
"requires": {
|
||||
"messaging": true,
|
||||
"db": true
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"start": "cds-serve"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,14 @@ using { sap.capire.orders as my } from '../db/schema';
|
||||
|
||||
service OrdersService {
|
||||
entity Orders as projection on my.Orders;
|
||||
|
||||
@odata.draft.bypass
|
||||
@(requires: 'system-user')
|
||||
entity OrdersNoDraft as projection on my.Orders;
|
||||
|
||||
event OrderChanged {
|
||||
product: String;
|
||||
deltaQuantity: Integer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user