add Authors, rename author attribute
This commit is contained in:
@@ -15,12 +15,18 @@ service CatalogService @(path : '/browse') {
|
||||
*/
|
||||
@readonly
|
||||
entity Books as projection on my.Books {
|
||||
* , author.name as author
|
||||
* , author.name as authorName
|
||||
} excluding {
|
||||
createdBy,
|
||||
modifiedBy
|
||||
};
|
||||
|
||||
@readonly
|
||||
entity Authors as projection on my.Authors excluding {
|
||||
createdBy,
|
||||
modifiedBy
|
||||
};
|
||||
|
||||
@requires : 'authenticated-user'
|
||||
action submitOrder(book : Books:ID, quantity : Integer) returns {
|
||||
stock : Integer
|
||||
|
||||
Reference in New Issue
Block a user