# (Your) Data
as a Service

The Easy Way to Build an API for Your Data

Keith E. Maull, PhD

##### DATAPALOOZA/Denver
5-19-2016

## Say you have some data ...

Maybe it's big data ...

or small.

## and maybe the data
is useful to you

... and maybe someone else

... and maybe even some other people.

## But there are 3 things you've convinced yourself of: 1. Building an API is way more work than you have time for. 2. Writing **_useful_** documentation for an API is going to take even longer than building it. 3. There's nothing _really wrong_ with CSV files ... even the 1GB ZIP-bomb kind.

so you go on your merry way and do nothing

... or put that data on an FTP server
and call it a day.

## This talk is going explore the 'spec first' paradigm for building your data API ...

## Ingredient 0: The Data

Any data will do, though!

## Ingredient 1: The Spec

OpenAPI is really, really nice!

## Ingredient 2: The Implementation

Connexion and XLRD are your friends!

## Ingredient 3: Run and test ...

## What you just learned to do * You can now make a spec first API, * with only a few lines of code, * that produce a running server, documentation and test-harness, * that can allow you to integrate almost any data source ... * (even a gnarly XLS file if you need to)!

BE BRAVE: go hack a data API today!

## Got Questions?

kmaull@ucar.edu