RubyFlow The Ruby and Rails community linklog

sport.db.api.starter Sample - Build your own HTTP JSON API using the football.db w/ Sinatra

Hello, To get started building your own HTTP JSON API / web service using the football.db, worldcup.db, bundesliga.db, etc. try the new sport.db.api.starter kit. Step 1: Install all gems using bundler. Step 2: Copy a football.db into your app folder. Step 3: Startup the web service (HTTP JSON API) using rackup. That’s it. Open your browser and try some services running on localhost on port 9292. Example: List all World Cup 2014 teams (event/world.2014/teams); list all World Cup 2014 rounds (event/world.2014/rounds) and so on. You’re welcome to change the server script to fit your needs. Enjoy. Cheers.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in