Giter VIP home page Giter VIP logo

sport-api-specifications's Introduction

Sport API specifications

Travis

This repository contains OpenAPI 3.0 specification files for various sport APIs.

These APIs are all unofficially documented, so this data has been painstakingly compiled with help from various sources on the Internet. The data served by these APIs are owned by the respective leagues, and these API specifications are provided for informational purposes and I take zero responsibility for how you use them.

Leagues

  • NHL
  • MLB (coming soon)

Development

This repository uses Speccy for validation. To run the validation tests after making any changes, execute the following:

npm install
make validate

sport-api-specifications's People

Contributors

erunion avatar matthew-jack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sport-api-specifications's Issues

Can't get list of conferences or divisions

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.

fails speccy validation

Speccy validation fails without making any changes.

➜  sport-api-specifications git:(master) npm install
npm WARN deprecated [email protected]: Please update to v 2.2.x
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

> [email protected] postinstall /Users/assumednormal/projects/sport-api-specifications/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall /Users/assumednormal/projects/sport-api-specifications/node_modules/ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of mobx@^6.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of styled-components@^4.1.1 || ^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of styled-components@^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of mobx@^6.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.0 || ^17 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.3.0 || ^17.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of mobx@^6.0.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.0 || ^17 but none is installed. You must install peer dependencies yourself.
npm WARN sport-api-specifications No repository field.
npm WARN sport-api-specifications No license field.

added 351 packages from 322 contributors and audited 351 packages in 13.19s

13 packages are looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
➜  sport-api-specifications git:(master) make validate
./node_modules/.bin/speccy lint nhl/*.yaml

#/  R: openapi-tags-alphabetical  D: openapi object should have alphabetical tags
expected Array [
  Object { name: 'conferences' },
  Object { name: 'divisions' },
  Object { name: 'draft' },
  Object { name: 'games' },
  Object { name: 'players' },
  Object { name: 'schedule' },
  Object { name: 'standings' },
  Object { name: 'stats' },
  Object { name: 'teams' }
] to be Array [
  Object { name: 'conferences' },
  Object { name: 'divisions' },
  Object { name: 'draft' },
  Object { name: 'games' },
  Object { name: 'players' },
  Object { name: 'schedule' },
  Object { name: 'standings' },
  Object { name: 'stats' },
  Object { name: 'teams' }
]
  
make: *** [validate] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.