A visual overview of how the data resources are distributed among the API endpoints, and how to navigate forward and backwards from one endpoint to the other.
Country
In International cricket, every team/association belongs to a certain country or region. For example, Team India represents a country while the West Indies represents the Caribbean region, which is a collection of countries.
Association
Associations control and govern cricketing activities over a region. They organise tournaments in which teams from other associations participate. Associations can be either International or Domestic. The associations can also have parent associations. For example, the parent association of the BCCI is the ICC while the parent association of TNCA is the BCCI.
Competition
Competitions are tournament that are recurrent and take place at a determined frequency. The ICC Cricket World Cup that happens at an interval of four years and the Ashes which is played every two years are some great examples of competitions.
Tournament
In Roanuz Cricket API terms, a tournament is a particular edition of a competition. For example, the ICC Cricket World Cup 2019 is a tournament of the competition ICC Cricket World Cup.
Matches
A match will always belong to a certain tournament, and a tournament usually consists of various matches. For example, the ICC Cricket World Cup 2019 tournament had a total of 48 matches.
Teams
Teams can be accessed from tournaments with the tournament keys. A team is always managed by an association. Before the start of a tournament, the association will announce the squad of players who are going to represent their team. For example, the Indian National Cricket Team represents the Indian nation in International Cricket.
Players
In Roanuz Cricket, players are not bound by other resources and are independent to access. Players do not come under the hierarchy of the data structure. Virat Kohli, Rohit Sharma and Ravindra Jadeja are examples of players.