From 0d19e56509dcefece63e2c9028a580e556ec2f2a Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 13 May 2021 12:29:22 +0200 Subject: [PATCH] cosmetic changes --- bookshop/srv/cat-service.cds | 5 +++-- reviews/srv/reviews-service.cds | 4 ++-- suppliers/srv/mashup.cds | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bookshop/srv/cat-service.cds b/bookshop/srv/cat-service.cds index 4cc44dff..81777afb 100644 --- a/bookshop/srv/cat-service.cds +++ b/bookshop/srv/cat-service.cds @@ -2,8 +2,9 @@ using { sap.capire.bookshop as my } from '../db/schema'; service CatalogService @(path:'/browse') { /** For displaying lists of Books */ - @readonly entity ListOfBooks as projection on Books - excluding { descr }; + @readonly entity ListOfBooks as projection on Books { + ID, author, genre, price, currency + } /** For display in details pages */ @readonly entity Books as projection on my.Books { *, diff --git a/reviews/srv/reviews-service.cds b/reviews/srv/reviews-service.cds index a4505b3d..6fe6daa7 100644 --- a/reviews/srv/reviews-service.cds +++ b/reviews/srv/reviews-service.cds @@ -9,8 +9,8 @@ service ReviewsService { // Async API event reviewed : projection on Reviews { - subject, - rating + subject, //> recieved new reviews + rating //> new avg rating } // Input validation diff --git a/suppliers/srv/mashup.cds b/suppliers/srv/mashup.cds index 33d607c9..11087d77 100644 --- a/suppliers/srv/mashup.cds +++ b/suppliers/srv/mashup.cds @@ -51,5 +51,5 @@ annotate S4.Suppliers with @cds.persistence:{table,skip:false}; traffic on S4 backends. */ extend projection CatalogService.ListOfBooks with { - supplier + supplier.name as supplier }