Guerrilla APIs

@switzerly

shelbyswitzer.com

getnotion.com

The world runs on small data.

show-me-the-food

  • Identify food deserts.
  • Add canvassing tool.
  • Visualize findings.
  • Change the world.

The need:

  • easy (and free) to store and maintain data
  • little or no changes to raw data
  • has or can integrate with flexible, robust API (that doesn't need to be hosted)
  • simple setup locally or on any server

The need:

  • easy (and free) to store and maintain data
  • little or no changes to raw data
  • has or can integrate with flexible, robust API (that doesn't need to be hosted)
  • simple setup locally or on any server

API

$ docker-compose up -e DATA_URL="https://api.github.com/repos/switzersc/food-data"
$ curl http://localhost:4567/resources?bustype=convenience&dedupe=name
  1. throw data into github repo
  2. install docker
  3.  
  4.  

API-in-a-box

{
    "collection" :
        "href" : "http://dockerip:4567/resources/",
        "items" : [ 
            {
                "href" : "http://dockerip:4567/resources/8903493",
                "data" : [
                  {"name" : "name", "value" : "Bob's Convenience Store"},
                  {"name" : "lat", "value" : "33.760094"},
                  {"name" : "lng", "value" : "-84.386037"},
                  {"name" : "bustype", "value" : "convenience"},
                ]
              }
        ],
        "queries" : [
            {"rel" : "search", "href" : "http://dockerip:4567/resources", "prompt" : "Search",
                "data" : [
                    {"name" : "name", "value" : ""},
                    {"name" : "lat", "value" : ""},
                    {"name" : "lng", "value" : ""},
                    {"name" : "bustype", "value" : ""},
                    {"name" : "dedupe", "value" : ""}
                ]
            }
        ]
}

Hypermedia!

The need:

  • easy (and free) to store and maintain data
  • little or no changes to raw data
  • has or can integrate with flexible, robust API (that doesn't need to be hosted)
  • simple setup locally or on any server

Thanks!

https://www.docker.com/

http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html

http://amundsen.com/media-types/collection/

https://www.data.gov/developers/apis

 

cool things:

@switzerly

shelbyswitzer.com

getnotion.com

Guerilla APIs - BSW

By Shelby Switzer

Guerilla APIs - BSW

  • 1,283