Implementing the /doc-parser API