Implementing RESTful webservices in Scala