A sample REST API implementation in Scala