diff --git a/bookshop/srv/cat-service.cds b/bookshop/srv/cat-service.cds index 034829b1..d9672753 100644 --- a/bookshop/srv/cat-service.cds +++ b/bookshop/srv/cat-service.cds @@ -8,9 +8,11 @@ service CatalogService @(path:'/browse') { /** For display in details pages */ @readonly entity Books as projection on my.Books { *, author.name as author - } excluding { createdBy, modifiedBy, contents }; + } excluding { createdBy, modifiedBy }; @requires: 'authenticated-user' action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer }; event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String }; } +@cds.redirection.target: true +@readonly entity Contents as projection on my.Contents; \ No newline at end of file