1
0
mirror of https://gitlab.com/dword4/nhlapi synced 2024-11-25 03:54:55 +00:00

Added some more endpoint data

Should also consider adding the fact that the expand modifiers can be strung together and separate them via commas
This commit is contained in:
Turkey2349 2018-04-23 01:32:42 -04:00 committed by GitHub
parent ae4febf98f
commit 999858b437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,11 +41,20 @@ for a single team instead of the entire league.
#### Modifiers #### Modifiers
`?expand=team.roster` Shows roster of active players for the specified team `?expand=team.roster` Shows roster of active players for the specified team
`?expand=person.names` Same as above, but gives less info.
`?expand=team.schedule.next` Returns details of the upcoming game for a team `?expand=team.schedule.next` Returns details of the upcoming game for a team
`?expand=team.schedule.previous` Same as above but for the last game played `?expand=team.schedule.previous` Same as above but for the last game played
`?expand=team.stats` Returns the teams stats for the season
`?expand=team.roster&season=20142015` Adding the season identifier shows the roster for that season `?expand=team.roster&season=20142015` Adding the season identifier shows the roster for that season
`?teamId=4,5,29` Can string team id together to get multiple teams
`?stats=statsSingleSeasonPlayoffs` Speciy which stats to get. Not fully sure all of the values
```{ ```{
"copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2018. All Rights Reserved.", "copyright" : "NHL and the NHL Shield are registered trademarks of the National Hockey League. NHL and NHL team marks are the property of the NHL and its teams. © NHL 2018. All Rights Reserved.",
"teams" : [ { "teams" : [ {