add api directory