The sportdb web service starter sample lets you build your own HTTP JSON API
using the
football.db
,
worldcup.db
,
ski.db
,
formulal1.db
, etc.
Step 1: Build yourself a binary using go
. Type:
$ go build -o server server.go app.go database_structs.go database_finders.go
Step 2: Copy an SQLite database e.g. football.db
into your folder.
Step 3: Startup the web service (HTTP JSON API). Type:
$ ./server
That's it. Open your web browser and try some services
running on your machine on port 9292 (e.g. localhost:9292
). Example:
List all events:
http://localhost:9292/events
List all English Premier League 2014/15 teams:
http://localhost:9292/event/en.2014_15/teams
And so on. Now change the sources to fit your needs. Be bold. Enjoy.
The sportdb.db.starter
scripts are dedicated to the public domain.
Use it as you please with no restrictions whatsoever.
Send them along to the Open Sports & Friends Forum/Mailing List. Thanks!