Update genDocApi.php example