1
0
mirror of https://gitlab.com/dword4/nhlapi synced 2024-11-22 02:24:54 +00:00

Adding draft prospect endpoint documentation.

This commit is contained in:
Jon Ursenbach 2018-02-14 23:21:52 -05:00
parent 8e670dc914
commit 5f0c09122b

View File

@ -900,6 +900,8 @@ Ex:
### Draft ### Draft
`GET https://statsapi.web.nhl.com/api/v1/draft` Get round-by-round data for current year's NHL Entry Draft.
`GET https://statsapi.web.nhl.com/api/v1/draft/YEAR` Takes a YYYY format year and returns draft data `GET https://statsapi.web.nhl.com/api/v1/draft/YEAR` Takes a YYYY format year and returns draft data
```{ ```{
@ -926,3 +928,48 @@ Ex:
} }
}, },
``` ```
### Prospects
`GET https://statsapi.web.nhl.com/api/v1/draft/prospects` Get all NHL Entry Draft prospects.
`GET https://statsapi.web.nhl.com/api/v1/draft/prospects/ID` Get an NHL Entry Draft prospect.
```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 2018. All Rights Reserved.",
"prospects" : [ {
"id" : 53727,
"fullName" : "Zbynek Horak",
"link" : "/api/v1/draft/prospects/53727",
"firstName" : "Zbynek",
"lastName" : "Horak",
"birthDate" : "1995-03-08",
"birthCountry" : "CZE",
"height" : "5' 10\"",
"weight" : 168,
"shootsCatches" : "L",
"primaryPosition" : {
"code" : "L",
"name" : "Left Wing",
"type" : "Forward",
"abbreviation" : "LW"
},
"draftStatus" : "Elig",
"prospectCategory" : {
"id" : 2,
"shortName" : "Euro Skater",
"name" : "European Skater"
},
"amateurTeam" : {
"name" : "Znojmo Jr.",
"link" : "/api/v1/teams/null"
},
"amateurLeague" : {
"name" : "AUSTRIA-JR.",
"link" : "/api/v1/league/null"
},
"ranks" : { }
} ]
}
```