API simples com os DDDs das cidades do Brasil
bundle install
bin/build_api
cd site
jekyll serve -P 3000
curl http://simple-ddd.mcorp.ws/br.json
curl http://simple-ddd.mcorp.ws/br/pr.json
curl http://simple-ddd.mcorp.ws/br/pr/curitiba.json
curl http://simple-ddd.mcorp.ws/br/pr/curitiba/ddd.json
curl http://simple-ddd.mcorp.ws/br/pr/curitiba/ddd.json
curl http://simple-ddd.mcorp.ws/br/to/pau-d-arco/ddd.json
$.ajax({ url:'http://simple-ddd.mcorp.ws/br/pr/curitiba/ddd.jsonp', dataType:'jsonp', jsonpCallback: "simpleDDDCallback", cache: true}).done(function(t){ console.log(t); } )
$.ajax({ url:'http://simple-ddd.mcorp.ws/br/sp/santa-barbara-d-oeste.jsonp', dataType:'jsonp', jsonpCallback: "simpleDDDCallback", cache: true}).done(function(t){ console.log(t); } )
curl http://localhost:3000/br.json
curl http://localhost:3000/br/pr.json
curl http://localhost:3000/br/pr/curitiba.json
curl http://localhost:3000/br/pr/curitiba/ddd.json
curl http://localhost:3000/br/pr/curitiba/ddd.json
curl http://localhost:3000/br/to/pau-d-arco/ddd.json
$.ajax({ url:'http://localhost:3000/br/pr/curitiba/ddd.jsonp', dataType:'jsonp', jsonpCallback: "simpleDDDCallback", cache: true}).done(function(t){ console.log(t); } )
$.ajax({ url:'http://localhost:3000/br/sp/santa-barbara-d-oeste.jsonp', dataType:'jsonp', jsonpCallback: "simpleDDDCallback", cache: true}).done(function(t){ console.log(t); } )