fix api request method