Files
cloud-cap-samples/bookshop/srv/cat-service.cds
Christian Georgi 1587521bd3 Use newer syntax
2020-11-05 09:40:18 +01:00

11 lines
316 B
Plaintext

using { sap.capire.bookshop as my } from '../db/schema';
service CatalogService @(path:'/browse') {
@readonly entity Books as SELECT from my.Books {*,
author.name as author
} excluding { createdBy, modifiedBy };
@requires_: 'authenticated-user'
action submitOrder (book : Books:ID, amount: Integer);
}