From c6cc70a062009c2e470a800de4087161c15aa8b0 Mon Sep 17 00:00:00 2001 From: D070615 Date: Mon, 7 Jul 2025 15:37:02 +0200 Subject: [PATCH] fix redirect --- bookshop/srv/cat-service.cds | 8 +++----- test/localized-data/services.cds | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bookshop/srv/cat-service.cds b/bookshop/srv/cat-service.cds index d9672753..2fa85f64 100644 --- a/bookshop/srv/cat-service.cds +++ b/bookshop/srv/cat-service.cds @@ -3,16 +3,14 @@ service CatalogService @(path:'/browse') { /** For displaying lists of Books */ @readonly entity ListOfBooks as projection on Books - excluding { descr }; + excluding { descr, contents }; /** For display in details pages */ @readonly entity Books as projection on my.Books { *, author.name as author - } excluding { createdBy, modifiedBy }; + } excluding { createdBy, modifiedBy, contents }; @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 +} \ No newline at end of file diff --git a/test/localized-data/services.cds b/test/localized-data/services.cds index c49473c8..b9e9651a 100644 --- a/test/localized-data/services.cds +++ b/test/localized-data/services.cds @@ -7,6 +7,6 @@ extend service CatalogService with { *, //> non-localized defaults, e.g. title key ID, texts.title as localized_title, - texts.locale - }; + texts.locale, + } excluding { contents }; }