change diff api method from get to post