The shop microservice is the core microservice of the application which is responsible for providing match information, tickets availability for each game (with the help of reservations microservice), recommendations (with the help of analytics microservice, and prices.
Endpoint
GEThttps://shop.tickets22.baraa.app/matches
Example Responses
Successful response, returns details of all matches
1[
2 {
3 "matchNumber":1,
4 "roundNumber":1,
5 "date":"2022-11-20T16:00:00.000Z",
6 "stadium":{
7 "id":"clc7m3gpr0000v0z03zgttwaz",
8 "name":"Al Bayt Stadium"
9 },
10 "homeTeam":{
11 "id":"clc7m3hma0002v0z0bukvchki",
12 "name":"Qatar"
13 },
14 "homeScore":0,
15 "awayTeam":{
16 "id":"clc7m3i0s0004v0z0f4tvapje",
17 "name":"Ecuador"
18 },
19 "awayScore":0,
20 "group":"A",
21 "ended":false
22 }
23]
Endpoint
GEThttps://shop.tickets22.baraa.app/matches/{matchNumber}
Example Responses
Successful response, returns the match details
1{
2 "matchNumber":4,
3 "roundNumber":1,
4 "date":"2022-11-21T19:00:00.000Z",
5 "stadium":{
6 "id":"clc7m3mgj0010v0z0hwe8ri3l",
7 "name":"Ahmad Bin Ali Stadium"
8 },
9 "homeTeam":{
10 "id":"clc7m3mu50012v0z0sztx8k3l",
11 "name":"USA"
12 },
13 "homeScore":0,
14 "awayTeam":{
15 "id":"clc7m3n7t0014v0z08zizbiav",
16 "name":"Wales"
17 },
18 "awayScore":0,
19 "group":"B",
20 "ended":false
21}