diff --git a/bookshop/srv/cat-service.cds b/bookshop/srv/cat-service.cds index db9724d1..a8ac0f88 100644 --- a/bookshop/srv/cat-service.cds +++ b/bookshop/srv/cat-service.cds @@ -15,12 +15,18 @@ service CatalogService @(path : '/browse') { */ @readonly entity Books as projection on my.Books { - * , author.name as author + * , author.name as authorName } excluding { createdBy, modifiedBy }; + @readonly + entity Authors as projection on my.Authors excluding { + createdBy, + modifiedBy + }; + @requires : 'authenticated-user' action submitOrder(book : Books:ID, quantity : Integer) returns { stock : Integer