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

@@ -1,8 +1,12 @@
using { sap.capire.media.store as my } from '../db/schema';
using {sap.capire.media.store as my} from '../db/schema';
@cds.query.limit : {
default : 20,
max : 100
}
service MediaService {
entity Employees as projection on my.Employees;
entity Customers as projection on my.Customers;
entity Employees as projection on my.Employees;
entity Customers as projection on my.Customers;
entity Albums as projection on my.Albums;
entity Artists as projection on my.Artists;
entity Genres as projection on my.Genres;
@@ -11,5 +15,10 @@ service MediaService {
entity MediaTypes as projection on my.MediaTypes;
entity PlaylistTrack as projection on my.PlaylistTrack;
entity Playlists as projection on my.Playlists;
@(restrict : [{
grant : '*',
where : '$user.level > 1'
}])
entity Tracks as projection on my.Tracks;
}