+
+
{summary}
+
+
+ {path}
+
+
{description}
+ {security && security.length > 0 && (
+
Requires Authentication
+ )}
+
+
+ {parameters && parameters.length > 0 && (
+
+
Parameters:
+
+ {parameters.map((param: any, index: number) => (
+
+ ))}
+
+
+ )}
+
+ {/* {requestBody && (
+
+
Request Body:
+
JSON object containing:
+
+ {Object.entries(requestBody.content['application/json'].schema.properties).map(([key, value]) => (
+ -
+
{key}
+ {value.type && ({value.type})}
+ {value.description && - {value.description}}
+
+ ))}
+
+
+ )} */}
+
+ {!isProd && insights && (
+
+
Development Insights
+
+ {insights.performance_insights && (
+
+
+
+ Performance Insights
+
+
+ {insights.performance_insights.map((insight: any, index: number) => (
+ -
+ {insight.insight}: {insight.recommendation}
+
+ ))}
+
+
+ )}
+
+ {insights.security_insights && (
+
+
+
+ Security Insights
+
+
+ {insights.security_insights.map((insight: any, index: number) => (
+ -
+ {insight.insight}: {insight.recommendation}
+
+ ))}
+
+
+ )}
+
+ {insights.optimization_insights && (
+
+
+
+ Optimization Insights
+
+
+ {insights.optimization_insights.map((insight: any, index: number) => (
+ -
+ {insight.insight}: {insight.recommendation}
+
+ ))}
+
+
+ )}
+
+ {insights.additional_metadata && (
+
+
+
+ Additional Metadata
+
+
+ {Object.entries(insights.additional_metadata).map(([key, value]) => (
+ -
+ {key}: {
+ typeof value === 'object' && value !== null
+ ? JSON.stringify(value)
+ : String(value)
+ }
+
+ ))}
+
+
+ )}
+
+ )}
+
+