rest api use post to get data