Wrote the RESTful server