Talk given at Datapalooza Denver 2016 titled "(Your) Data as a Service: The Easy Way to Build an API for Your Data".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 8 години
преди 7 години
123456789101112131415161718192021222324252627282930313233343536373839
  1. ## (Your) Data as a Service : The Easy Way to Build an API for Your Data
  2. Got data? Sure you do. But, Is it useful? How about that documentation and, oh yeah, sample use scenarios?
  3. 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_.
  4. 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.
  5. ## Sound like a lot of work?
  6. 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](https://openapis.org), Python and a super-useful Python package called [Connexion](https://github.com/zalando/connexion), we'll work our way toward a fully functional API with documentation and a test harness.
  7. ## Sound impossible in less than an hour?
  8. [Find out how it can be done!](./code)
  9. ## Resources
  10. | Resource | Notes |
  11. |------|-----------------|
  12. | [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) | Check out the full documentation of the spec. |
  13. | [Connexion](https://github.com/zalando/connexion) | Core repo for the Connexion framework built on top of [Flask](http://flask.pocoo.org/). |
  14. | [Connexion Example Service](https://github.com/hjacobs/connexion-example)| Example that inspired this talk. |
  15. | [XLRD](https://github.com/python-excel/xlrd) | The MS Excel file reader in Python (a prerequisite for this demo). |
  16. | [Zalando's Restful API Guidelines](https://github.com/zalando/restful-api-guidelines) | A nice guide to explore for some best practices about REST-based APIs |
  17. ## Slides
  18. The slides for this can be found [here](./slides) liberally borrowing from the most awesome [reveal.js](http://lab.hakim.se/reveal-js/).
  19. ## Contact
  20. Want to reach out, make a comment or otherwise collaborate? Connect with me kmaull@ucar.edu!
  21. ## LICENSE
  22. CC-BY-4.0
  23. ![](https://i.creativecommons.org/l/by/4.0/88x31.png)
  24. This work is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).