prepare api app