17 lines
526 B
Plaintext
17 lines
526 B
Plaintext
using { sap.capire.bookshop as my } from '../db/schema';
|
|
|
|
service AdminService @(_requires:'authenticated-user') {
|
|
entity Books as projection on my.Books;
|
|
entity Authors as projection on my.Authors;
|
|
entity Orders as select from my.Orders;
|
|
}
|
|
|
|
// Enable Fiori Draft for Orders
|
|
annotate AdminService.Orders with @odata.draft.enabled;
|
|
// annotate AdminService.Books with @odata.draft.enabled;
|
|
|
|
// Temporary workaround -> cap/issues#3121
|
|
extend service AdminService with {
|
|
entity OrderItems as select from my.OrderItems;
|
|
}
|