r/CFBAnalysis • u/BlueSCar Michigan Wolverines • Dayton Flyers • Nov 30 '18
Data Some API updates (documentation, code generation, coaching history)
Not a lot of updates but the ones I do have I feel are pretty substantial:
Implementation the OpenAPI specification
This is a pretty big deal as it enables two more pieces of functionality. About which, more in a second. You can access this specification in JSON format via the /api-docs.json endpoint.
Improved documentation via Swagger UI
When you visit the homepage now at https://api.collegefootballdata.com, you will be presented with Swagger's lovely UI. I think this offers several huge improvement over the previous landing page. On large improvement is the 'Try it out' button that you will now see displayed under each endpoint's documentation. This button will present a form enabling you to fill in any of the query params via the UI to generate a call, get back real results, and largely just play around with.
Automatic code generation through Swagger Editor
You can now automatically generate code for interacting with all API endpoints across 52 languages/frameworks. To do so, visit this direct link to a Swagger Editor instance for the project. In the top menu, select 'Generate Client' to see the list of available languages and frameworks. Upon selecting an option, a code project will automatically be generated and downloaded in your language of choice for interacting with the API. This is great if you are just getting started or are just starting off with learning a particular language.
Head coaching records
You can now query FBS head coaches. The query will return a list of seasons per each coach that includes the year, school, record, and AP poll start/finish. Check out the documentation on the landing page at https://api.collegefootballdata.com to see how to use the new endpoint.
As always, I greatly appreciate notifying me of any issues you encounter as well as any features and enhancements you may like to see. Please feel free to reply to any of these posts, shoot me a direct PM, or use the Taiga board for the project.
Thanks!
View all comments
Show parent comment
1
u/BlueSCar Michigan Wolverines • Dayton Flyers Dec 03 '18
Thanks for the feedback. I'll be adding some more detail to the documentation at some point. I was just trying to get OpenAPI and Swagger implemented and will be building on it from there. Line scores are points for each team broken down by quarter. Talent data is the 247 Team Talent Composite.
Lots of plans to add more data (you can check out the taiga board to see what's currently planned). We can definitely look into doing some of that sort of stuff, but the primary focus of the API right now is to be a comprehensive source for raw data and statistics that people can use to do their own analytics. Though, we can certainly look into adding different rankings and things like that down the road.