16 lines
383 B
Plaintext
16 lines
383 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);
|
|
|
|
}
|
|
|
|
// activate pre-build extensions from...
|
|
using from '@capire/common';
|