Files
cloud-cap-samples/bookshop/srv/cat-service.cds
2020-03-23 08:47:22 +01:00

11 lines
310 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 order (book : Books.ID, amount: Integer);
}