reviews + events

This commit is contained in:
Daniel
2020-03-02 02:43:15 +01:00
parent 9921b2f3de
commit cb066233c9
52 changed files with 103 additions and 1077 deletions

13
events/services.cds Normal file
View File

@@ -0,0 +1,13 @@
namespace sap.capire.bookshop;
using { sap.capire.reviews.ReviewsService as external } from '@capire/reviews';
using { sap.capire.bookshop.Books } from '@capire/bookshop/db/schema';
// Extending Books by Reviews
extend Books with {
reviews : Composition of many external.Reviews on reviews.subject = ID;
rating : external.Reviews.rating;
}
using from '@capire/bookshop/srv/admin-service';
using from '@capire/bookshop/srv/cat-service';
annotate AdminService with @impl:'services.js';