MLB documentation says rosterType and season are required for the team_roster endpoint, but the endpoint works fine without them. Remove the requirements.
Call rejected due to missing required parameters:
>>> statsapi.get('team_roster', {'teamId':143})
2019-11-05 21:09:51,345 - DEBUG - statsapi(10988) - URL: https://statsapi.mlb.com/api/{ver}/teams/{teamId}/roster
2019-11-05 21:09:51,345 - DEBUG - statsapi(10988) - Found path param: teamId
2019-11-05 21:09:51,346 - DEBUG - statsapi(10988) - path_params: {'teamId': '143'}
2019-11-05 21:09:51,346 - DEBUG - statsapi(10988) - query_params: {}
2019-11-05 21:09:51,404 - DEBUG - statsapi(10988) - Replacing {teamId}
2019-11-05 21:09:51,404 - DEBUG - statsapi(10988) - URL: https://statsapi.mlb.com/api/{ver}/teams/143/roster
2019-11-05 21:09:51,514 - DEBUG - statsapi(10988) - Replacing {ver} with default: v1.
2019-11-05 21:09:51,517 - DEBUG - statsapi(10988) - URL: https://statsapi.mlb.com/api/v1/teams/143/roster
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37\lib\site-packages\statsapi\__init__.py", line 2447, in get
+ note
ValueError: Missing required parameter(s): rosterType, season.
--Required parameters for the team_roster endpoint: [['rosterType', 'season']].
--Note: If there are multiple sets in the required parameter list, you can choose any of the sets.
Same call forced through and successfully returning results:
MLB documentation says rosterType and season are required for the team_roster endpoint, but the endpoint works fine without them. Remove the requirements.
Call rejected due to missing required parameters:
Same call forced through and successfully returning results: