returning subfolders names

This commit is contained in:
Dmitriynj
2020-12-23 13:38:09 +03:00
committed by Daniel Hutzel
parent 9d28ca9844
commit 9abeb67d82
41 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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 };
@readonly entity ListOfBooks as SELECT from Books
excluding { descr };
@requires: 'authenticated-user'
action submitOrder ( book: Books:ID, amount: Integer ) returns { stock: Integer };
event OrderedBook : { book: Books:ID; amount: Integer; buyer: String };
}