erunion / sport-api-specifications

OpenAPI 3.0 specifications for various sport APIs.
101 stars 27 forks source link

Can't get list of conferences or divisions #7

Closed dimitry-ishenko closed 5 years ago

dimitry-ishenko commented 5 years ago

Used openapi-generator to create NHL API Python client.

When I try to get a list of conferences, I get an dictionary with "copyright" and "teams" tags instead. The "teams" tag is obviously empty.

See repl.it example: https://repl.it/@dimitry_ishenko/nhl-api

Likewise, DivisionsApi().get_divisions() is not working.

On the other hand, DraftApi().get_draft(), DraftApi().get_draft_prospects(), ScheduleApi().get_schedule(), StandingsApi().get_standing_type(), StandingsApi().get_standings(), StatsApi().get_stat_types() and TeamsApi().get_teams() are working.

Quite a few other things also don't seem to work, eg: TeamsApi().get_team(14) does return a response, but all the field values are None.

I am new to all this, so I've no idear where things go wrong.

erunion commented 5 years ago

It's likely that the NHL has updated their API and the OpenAPI spec needs to be updated.