Added minimal DocumentApi