Create api directory