cosmetic changes
This commit is contained in:
@@ -2,8 +2,9 @@ using { sap.capire.bookshop as my } from '../db/schema';
|
|||||||
service CatalogService @(path:'/browse') {
|
service CatalogService @(path:'/browse') {
|
||||||
|
|
||||||
/** For displaying lists of Books */
|
/** For displaying lists of Books */
|
||||||
@readonly entity ListOfBooks as projection on Books
|
@readonly entity ListOfBooks as projection on Books {
|
||||||
excluding { descr };
|
ID, author, genre, price, currency
|
||||||
|
}
|
||||||
|
|
||||||
/** For display in details pages */
|
/** For display in details pages */
|
||||||
@readonly entity Books as projection on my.Books { *,
|
@readonly entity Books as projection on my.Books { *,
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ service ReviewsService {
|
|||||||
|
|
||||||
// Async API
|
// Async API
|
||||||
event reviewed : projection on Reviews {
|
event reviewed : projection on Reviews {
|
||||||
subject,
|
subject, //> recieved new reviews
|
||||||
rating
|
rating //> new avg rating
|
||||||
}
|
}
|
||||||
|
|
||||||
// Input validation
|
// Input validation
|
||||||
|
|||||||
@@ -51,5 +51,5 @@ annotate S4.Suppliers with @cds.persistence:{table,skip:false};
|
|||||||
traffic on S4 backends.
|
traffic on S4 backends.
|
||||||
*/
|
*/
|
||||||
extend projection CatalogService.ListOfBooks with {
|
extend projection CatalogService.ListOfBooks with {
|
||||||
supplier
|
supplier.name as supplier
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user