refine rest activity apis.