fixed phpdoc comment in Api.php