From 5f0c09122b9226a08413eccab73311f85e5790f3 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Wed, 14 Feb 2018 23:21:52 -0500 Subject: [PATCH] Adding draft prospect endpoint documentation. --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 467353c..d226cda 100644 --- a/README.md +++ b/README.md @@ -806,7 +806,7 @@ to be used in order do get a specific kind of player stats `GET https://statsapi.web.nhl.com/api/v1/teams/5/stats` Returns current season stats and the current season rankings for a specific team -Ex: +Ex: ```{ "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.", @@ -900,6 +900,8 @@ Ex: ### 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 ```{ @@ -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" : { } + } ] +} +``` \ No newline at end of file