go RESTful API with examples