cosmetic changes

This commit is contained in:
Daniel
2021-05-13 12:29:22 +02:00
parent fc088015d3
commit 0d19e56509
3 changed files with 6 additions and 5 deletions

View File

@@ -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 { *,

View File

@@ -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

View File

@@ -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
}