REST api now is a class, uses interface DataSource instead of lambdas