api dir structure