From 7a0e8fdba698c59ae27e871124c2d087f623cd66 Mon Sep 17 00:00:00 2001 From: "Dzmitry_Tamashevich@epam.com" Date: Thu, 1 Oct 2020 18:57:10 +0300 Subject: [PATCH] remove redundantt folder --- media-store/db/schema.cds | 84 +++++++++++++++++++------------------- media-store/test/test.http | 63 ++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+), 42 deletions(-) create mode 100644 media-store/test/test.http diff --git a/media-store/db/schema.cds b/media-store/db/schema.cds index 1d3b3d32..8dc11839 100644 --- a/media-store/db/schema.cds +++ b/media-store/db/schema.cds @@ -36,52 +36,52 @@ entity Albums { artist : Association to Artists; } -// entity Employees : ContactInfoAspect { -// reportsTo : Association to Employees; -// title : String(20); -// birthDate : DateTime; -// hireDate : DateTime; -// } +entity Employees : ContactInfoAspect { + reportsTo : Association to Employees; + title : String(20); + birthDate : DateTime; + hireDate : DateTime; +} -// entity Customers : ContactInfoAspect { -// company : String(80); -// supportRep : Association to Employees; -// } +entity Customers : ContactInfoAspect { + company : String(80); + supportRep : Association to Employees; +} // keep columns order for importing data -entity Employees { - key ID : Integer; - lastName : String(20); - firstName : String(40); - title : String(20); - reportsTo : Association to Employees; - birthDate : DateTime; - hireDate : DateTime; - adress : String(70); - city : String(40); - state : String(40); - country : String(40); - postalCode : String(10); - phone : String(24); - fax : String(24); - email : String(60); -} +// entity Employees { +// key ID : Integer; +// lastName : String(20); +// firstName : String(40); +// title : String(20); +// reportsTo : Association to Employees; +// birthDate : DateTime; +// hireDate : DateTime; +// adress : String(70); +// city : String(40); +// state : String(40); +// country : String(40); +// postalCode : String(10); +// phone : String(24); +// fax : String(24); +// email : String(60); +// } -entity Customers { - key ID : Integer; - firstName : String(40); - lastName : String(20); - company : String(80); - adress : String(70); - city : String(40); - state : String(40); - country : String(40); - postalCode : String(10); - phone : String(24); - fax : String(24); - email : String(60); - supportRep : Association to Employees; -} +// entity Customers { +// key ID : Integer; +// firstName : String(40); +// lastName : String(20); +// company : String(80); +// adress : String(70); +// city : String(40); +// state : String(40); +// country : String(40); +// postalCode : String(10); +// phone : String(24); +// fax : String(24); +// email : String(60); +// supportRep : Association to Employees; +// } entity Invoices { key ID : Integer; diff --git a/media-store/test/test.http b/media-store/test/test.http new file mode 100644 index 00000000..3b07165c --- /dev/null +++ b/media-store/test/test.http @@ -0,0 +1,63 @@ +@media-store-service = http://localhost:4004/media + +### ------------------------------------------------------------------------ +# Get service +GET {{media-store-service}} + +### ------------------------------------------------------------------------ +# Get $metadata document +GET {{media-store-service}}/$metadata + +### ------------------------------------------------------------------------ +# Get Artists +GET {{media-store-service}}/Artists + +### ------------------------------------------------------------------------ +# Get Albums +GET {{media-store-service}}/Albums +?$expand=artist&$top=10 + +### ------------------------------------------------------------------------ +# Get Customers +GET {{media-store-service}}/Customers +?$expand=supportRep&$top=10 + +### ------------------------------------------------------------------------ +# Get Employees +GET {{media-store-service}}/Employees +?$expand=reportsTo&$top=10 + +### ------------------------------------------------------------------------ +# Get Genres +GET {{media-store-service}}/Genres +?$top=10 + +### ------------------------------------------------------------------------ +# Get InvoiceItems +GET {{media-store-service}}/InvoiceItems +?$expand=track,invoice&$top=10 + +### ------------------------------------------------------------------------ +# Get Invoices +GET {{media-store-service}}/Invoices +?$top=10&$expand=customer + +### ------------------------------------------------------------------------ +# Get MediaTypes +GET {{media-store-service}}/MediaTypes +?$top=10 + +### ------------------------------------------------------------------------ +# Get PlaylistTrack +GET {{media-store-service}}/PlaylistTrack +?$top=10&$expand=track,playlist + +### ------------------------------------------------------------------------ +# Get Playlists +GET {{media-store-service}}/Playlists +?$top=10 + +### ------------------------------------------------------------------------ +# Get Playlists +GET {{media-store-service}}/Tracks +?$top=10&$expand=genre,mediaType,album \ No newline at end of file