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