Updated reviews samples for messaging GA

This commit is contained in:
Daniel
2021-10-18 17:43:45 +02:00
committed by Daniel Hutzel
parent 5f89334403
commit 404427237b
12 changed files with 83 additions and 12 deletions

View File

@@ -0,0 +1,13 @@
// Use enhanced implementation for CatalogService
using { CatalogService } from '@capire/bookshop';
annotate CatalogService with @impl:'srv/bookshop.js';
// Extend Books with access to Reviews and average ratings
using { sap.capire.bookshop.Books } from '@capire/bookshop';
using { ReviewsService.Reviews } from '@capire/reviews';
extend Books with {
reviews : Composition of many Reviews on reviews.subject = $self.ID;
rating : Decimal;
numberOfReviews : Integer;
}