The flexibility of our API is in the part where you build your own responses by adding include parameters to your request. On every endpoint you can find information on what data can be included and how deep you can add includes. To best describe how to use includes and what the include limit means, we will give an explanation based on some example calls.
Useful information for every game is home and away team information. How else would you know between which two teams the game is being played? Here we start with the interesting part, including team information.
What is a game without the progression? Important information for your application to show could be bowling and batting information, lineup or runs. You can use these includes:
With the current URL we have no clue to which scoreboard the player relates to. It only shows the
player_id, not the actual name.
Luckily the flexibility of the API goes a step further with nested includes. Nested includes are basically relations on relations for the base endpoint. We can enrich the runs, battings etc. with actual player information showing all details of the player who was responsible for the score.
Note we have added the
.player to the lineup include? Or