add tracks main page. add get my tracks action

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-08 11:17:06 +03:00
committed by Daniel Hutzel
parent 0f6444589f
commit bdbd9d425b
28 changed files with 381 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
using {sap.capire.media.store as my} from '../db/schema';
@cds.query.limit : {
default : 12,
max : 100
}
@(requires : ['identified-user'])
service BrowseTracks {
@readonly
entity Tracks as projection on my.Tracks;
@(requires : ['authenticated-user'])
action getInvoicedTracks() returns array of {
ID : Tracks.ID;
trackName : Tracks.name;
genreName : my.Genres.name;
composer : Tracks.composer;
unitPrice : Tracks.unitPrice;
albumTitle : my.Albums.title;
};
@readonly
entity Genres as projection on my.Genres;
}