Move api wrapper under api directory