Generate documents for an api