new api, documents view, outputs documents in format for iOS application