@devries-cameron20 / composio Mirror · read-only / commits / 8790a1027
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 14:30 UTC

fix(docs): clean up API reference response structure

- Responses now shown as a clean table of status codes - Response body schema shown separately only for 2xx responses - Clearer separation of concerns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 19, 2026 at 17:18 UTC 8790a1027c042ea5ee6187ddcb1d6a540d9e8fb7
1 file changed +11 -3
docs/app/llms.mdx/[[...slug]]/route.ts
+11 -3
@@ -208,16 +208,24 @@ async function openapiPageToMarkdown(
208 }> | undefined;
209
210 if (responses) {
211 + // Response status codes table
212 lines.push('### Responses', '');
213 + lines.push('| Status | Description |');
214 + lines.push('|--------|-------------|');
215 for (const [status, response] of Object.entries(responses)) {
213 - const desc = response.description || '';
214 - lines.push(`#### ${status} - ${desc}`, '');
216 + const desc = (response.description || '').replace(/\|/g, '\\|').replace(/\n/g, ' ');
217 + lines.push(`| ${status} | ${desc} |`);
218 + }
219 + lines.push('');
220
221 + // Success response body (2xx only)
222 + for (const [status, response] of Object.entries(responses)) {
223 + if (!status.startsWith('2')) continue;
224 const jsonContent = response.content?.['application/json'];
225 if (jsonContent?.schema) {
226 const schemaProps = renderSchemaProperties(jsonContent.schema);
227 if (schemaProps.length > 0) {
220 - lines.push('**Response body:**', '');
228 + lines.push(`### Response Body (${status})`, '');
229 lines.push(...schemaProps);
230 lines.push('');
231 }