rename class from Api to AbstractApi