adding api dir