Automated issue resolution for APIs