convert api into bundle