You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on doing this here as a fun weekend project. Using the endpoint documentation from nba_py, I'm working on generating a JSON documentation file that adheres to the Swagger specification. I initially created a JSON simply containing the endpoints and parameters and used it to generate a simple, very low-level client, but then thought using something like Swagger would be more useful.
So far, other than reformatting the information, I've specified whether or not each parameter is required, per the 400 responses from the stats.nba.com API, and identified endpoints from the documentation file that appear to be inactive (404).
This is a very rough first pass on this, and I have not tested or validated this representation at all (aside from validating that the code generates a valid swagger specification).
Next, I'd like to add information about what the API expects for each parameter. Hoping to do this by inspecting responses further (ex: in some cases, if a bad parameter is used, the API will return a regex that the parameter must match).
Add a script to pull this in automatically https://github.com/seemethere/nba_py/wiki/stats.nba.com-Endpoint-Documentation
Per seemethere/nba_py#18, consider generating API client programmatically from a machine-readable documentation file.
The text was updated successfully, but these errors were encountered: