implemented REST api scaffolding