Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build A RESTful API in Go

Build A RESTful API in Go

Build a RESTful API that controls a Sphero (http://www.gosphero.com/). Source code is here: https://github.com/jingweno/gundam

Jingwen Owen Ou

February 05, 2014

More Decks by Jingwen Owen Ou

Other Decks in Programming


  1. Build a RESTful API in Go Owen OU @JingwenOwenOu https://github.com/jingweno

  2. Sphero • A robot ball (http://www.gosphero.com/) • Go binding: http://gobot.io

  3. An endpoint to Sphero • `curl -X PUT localhost:3000/rgb/255,0,0` =>

    change Sphero’s colour to red • TDD an endpoint using Go standard library • TDD an endpoint using Martini and Assert • https://github.com/codegangsta/martini • https://github.com/bmizerany/assert
  4. Source • https://github.com/jingweno/gundam • $ git checkout api

  5. Q&A