Talk given at Datapalooza Denver 2016 titled "(Your) Data as a Service: The Easy Way to Build an API for Your Data".
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
Keith 86c602a29c relocation without history 8 år sedan
..
code relocation without history 8 år sedan
slides relocation without history 8 år sedan
README.md relocation without history 8 år sedan

README.md

(Your) Data as a Service : The Easy Way to Build an API for Your Data

Got data? Sure you do. But, Is it useful? How about that documentation and, oh yeah, sample use scenarios?

While “useful” is a relative term, your FTP server doesn’t need another undocumented CSV in it, and we already know the “download” metrics for that file aren’t really telling us the truth ... the same IP keeps downloading every file from 1am-4am everyday.

Why not wrap an API around your data and exposure something really useful? Not only will you gain a great deal of flexibility in what you expose, you can continue to improve what you expose, understand how it is being used and provide documentation and even an online test harness for end users. They can learn about how your API works, what the return data looks like and what the real value of what you have to offer might be. All the while, if you need to work on adding data, enhancing performance or adapting to format changes, the end user has continuous access to your data API while you work.

Sound like a lot of work?

Well it isn’t ... in less than an hour we’ll go through the steps of building a real (RESTish) API around a dataset to turn your imaginary users into real ones. Using the OpenAPI specification, Python and a super-useful Python package called Connexion, we’ll work our way toward a fully functional API with documentation and a test harness.

Sound impossible in less than an hour?

Find out how it can be done!

Resources

Resource Notes
OpenAPI Specification Check out the full documentation of the spec.
Connexion Core repo for the Connexion framework built on top of Flask.
Connexion Example Service Example that inspired this talk.
XLRD The MS Excel file reader in Python (a prerequisite for this demo).
Zalando’s Restful API Guidelines A nice guide to explore for some best practices about REST-based APIs

Slides

The slides for this can be found here liberally borrowing from the most awesome reveal.js.

Contact

Want to reach out, make a comment or otherwise collaborate? Connect with me kmaull@ucar.edu!