mirror of
https://gitlab.com/dword4/nhlapi
synced 2024-12-25 10:31:37 +00:00
Merge branch 'master' into 'master'
Update stats with venues endpoint, fix typo in records See merge request dword4/nhlapi!21
This commit is contained in:
commit
69b6675658
@ -65,7 +65,7 @@ and lastSeasonId and name of every team in the history of the nhl
|
||||
`/franchise-team-totals` Total stats
|
||||
for every franchise (ex roadTies, roadWins, etc)
|
||||
|
||||
`/site/api/franchise-season-records?cayenneExp=franchiseId=ID` Drill-down into season records for a specific franhise
|
||||
`/site/api/franchise-season-records?cayenneExp=franchiseId=ID` Drill-down into season records for a specific franchise
|
||||
|
||||
`/franchise-season-results?cayenneExp=franchiseId=24&sort=seasonId&dir=DESC` Returns every season result for a specified team, sorted by seasonId in descending order
|
||||
|
||||
|
20
stats-api.md
20
stats-api.md
@ -29,6 +29,8 @@
|
||||
|
||||
[Awards](#awards)
|
||||
|
||||
[Venues](#venues)
|
||||
|
||||
---
|
||||
|
||||
### <a name="teams"></a>Teams
|
||||
@ -1149,3 +1151,21 @@ Ex:
|
||||
}]
|
||||
}
|
||||
```
|
||||
|
||||
### <a name="venues">Venues
|
||||
|
||||
`GET https://statsapi.web.nhl.com/api/v1/venues` Get all NHL Venues in API database.
|
||||
|
||||
`GET https://statsapi.web.nhl.com/api/v1/venues/ID` Get an NHL Venue.
|
||||
|
||||
```json
|
||||
{
|
||||
"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 2019. All Rights Reserved.",
|
||||
"venues" : [ {
|
||||
"id" : 5064,
|
||||
"name" : "Pepsi Center",
|
||||
"link" : "/api/v1/venues/5064",
|
||||
"appEnabled" : true
|
||||
} ]
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user