fix redirect
This commit is contained in:
@@ -3,16 +3,14 @@ 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 };
|
excluding { descr, contents };
|
||||||
|
|
||||||
/** 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 { *,
|
||||||
author.name as author
|
author.name as author
|
||||||
} excluding { createdBy, modifiedBy };
|
} excluding { createdBy, modifiedBy, contents };
|
||||||
|
|
||||||
@requires: 'authenticated-user'
|
@requires: 'authenticated-user'
|
||||||
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
|
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
|
||||||
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };
|
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };
|
||||||
}
|
}
|
||||||
@cds.redirection.target: true
|
|
||||||
@readonly entity Contents as projection on my.Contents;
|
|
||||||
@@ -7,6 +7,6 @@ extend service CatalogService with {
|
|||||||
*, //> non-localized defaults, e.g. title
|
*, //> non-localized defaults, e.g. title
|
||||||
key ID,
|
key ID,
|
||||||
texts.title as localized_title,
|
texts.title as localized_title,
|
||||||
texts.locale
|
texts.locale,
|
||||||
};
|
} excluding { contents };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user