Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stats layout #15

Closed
andschneider opened this issue Jun 9, 2021 · 0 comments · Fixed by #25
Closed

Add stats layout #15

andschneider opened this issue Jun 9, 2021 · 0 comments · Fixed by #25
Assignees
Labels
API enhancement New feature or request UI

Comments

@andschneider
Copy link
Collaborator

The stats layout is a little complicated. I'm not sure exactly what stats to display yet, but will likely just mirror what can be found on MLB's website. I believe the endpoint is https://statsapi.mlb.com/api/v1/stats. The problem is you need query parameters to get back data. These come from the meta endpoints:

  • https://statsapi.mlb.com/api/v1/statTypes
  • https://statsapi.mlb.com/api/v1/statGroups

I've managed to build this query: https://statsapi.mlb.com/api/v1/stats?group=hitting&stats=sabermetrics,byDayOfWeek but more exploration is needed around the query parameters.

The UI will be based on a Table widget. I would like to add the ability to perform searches, e.g. batting vs pitching. These searches will likely correspond with what I discover with the API.

@andschneider andschneider added enhancement New feature or request API UI labels Jun 9, 2021
@andschneider andschneider added this to the v0.1.0 release milestone Jun 9, 2021
@andschneider andschneider self-assigned this Jun 9, 2021
@andschneider andschneider mentioned this issue Jul 13, 2021
@andschneider andschneider linked a pull request Jul 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant