Extract API spec into own document.