From b01b72052f3001eaf5f1b034669fa42f400a125a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89drick=20Renan?=
curl -X {ep.method} {baseUrl}
- {ep.path.replace("/api/", "/")}
+ {ep.path}
{ep.security ? ' -H "Authorization: Bearer YOUR_KEY"' : ""}
{ep.requestBody
? " -H \"Content-Type: application/json\" -d '{...}'"
@@ -515,6 +607,53 @@ export default function ApiEndpointsTab() {
{/* Try It panel */}
{isTrying && (
+ {ep.security && (
+
+
+
+
+
+
+ {useManualKey ? (
+ setManualApiKey(e.target.value)}
+ placeholder="Paste your API key here"
+ className="w-full px-3 py-2 text-xs font-mono rounded-lg border border-black/10
+ dark:border-white/10 bg-white dark:bg-black/30 focus:outline-none
+ focus:ring-1 focus:ring-primary"
+ />
+ ) : availableApiKeys.length > 0 ? (
+
+ ) : (
+
+ {apiKeyLoadError ||
+ "No active API keys found. Toggle manual entry to paste one."}
+
+ )}
+
+ )}
{ep.method !== "GET" && (