finish BS sync restful api