Basic structure for building API services