http://sysgears.com/articles/building-rest-service-with-scala/