Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

Source • https://github.com/jingweno/gundam • $ git checkout api

Slide 5

Slide 5 text

Q&A