fix APIs input format
add dataSource to controller classes