Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit c6cc70a

Browse files
committed
fix redirect
1 parent 7c33813 commit c6cc70a

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

bookshop/srv/cat-service.cds

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ service CatalogService @(path:'/browse') {
33

44
/** For displaying lists of Books */
55
@readonly entity ListOfBooks as projection on Books
6-
excluding { descr };
6+
excluding { descr, contents };
77

88
/** For display in details pages */
99
@readonly entity Books as projection on my.Books { *,
1010
author.name as author
11-
} excluding { createdBy, modifiedBy };
11+
} excluding { createdBy, modifiedBy, contents };
1212

1313
@requires: 'authenticated-user'
1414
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
1515
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };
16-
}
17-
@cds.redirection.target: true
18-
@readonly entity Contents as projection on my.Contents;
16+
}

test/localized-data/services.cds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ extend service CatalogService with {
77
*, //> non-localized defaults, e.g. title
88
key ID,
99
texts.title as localized_title,
10-
texts.locale
11-
};
10+
texts.locale,
11+
} excluding { contents };
1212
}

0 commit comments

Comments
 (0)