+ {/* Endpoint */}
+
+
+
+ {endpoint}{apiPath}
+
+ {tunnelEndpoint && (
+
+ )}
+
+
+
+ {/* API Key */}
+
+
+ {apiKey ? `${apiKey.slice(0, 8)}${"\u2022".repeat(Math.min(20, apiKey.length - 8))}` : No key configured}
+
+
+
+ {/* Input */}
+
+
+ setInput(e.target.value)}
+ placeholder={exConfig.inputPlaceholder}
+ className="w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"
+ />
+ {input && (
+
+ )}
+
+
+
+ {/* Curl + Run */}
+
+
+
Request
+
+
+
+
+
+
{curlSnippet}
+
+
+ {/* Error */}
+ {error &&
{error}
}
+
+ {/* Response */}
+
+
+
+ Response {result && ⚡ {result.latencyMs}ms}
+
+ {result && (
+
+ )}
+
+
+ {result ? resultJson : exConfig.defaultResponse}
+
+
+
+