base api scaffolding