appwizard / api.html
sharon55's picture
app wizard is not openning any apps by the prompt
0478827 verified
Raw History Blame Contribute Delete
3.01 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AppWizard API Documentation</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-8">
<div class="flex items-center justify-center mb-6">
<i class="fas fa-code text-4xl text-purple-600 mr-3"></i>
<h1 class="text-3xl font-bold text-gray-800">AppWizard API Documentation</h1>
</div>
<div class="mt-8 space-y-8">
<div class="bg-gray-50 p-6 rounded-lg">
<h2 class="text-xl font-semibold mb-4 text-purple-700">Command Processing API</h2>
<div class="bg-gray-800 text-gray-100 p-4 rounded-md mb-4 overflow-x-auto">
<code class="text-sm">
POST /api/process-command<br>
Content-Type: application/json<br><br>
Request Body:<br>
{<br>
&nbsp;&nbsp;"command": string,<br>
&nbsp;&nbsp;"type": "voice"|"text"|"quick"<br>
}<br><br>
Response:<br>
{<br>
&nbsp;&nbsp;"success": boolean,<br>
&nbsp;&nbsp;"message": string,<br>
&nbsp;&nbsp;"redirectUrl": string,<br>
&nbsp;&nbsp;"action": "open"|"search"|"navigate"<br>
}
</code>
</div>
<p class="text-gray-600 mt-2">
The API will process the command and return an appropriate action. The frontend should then:<br>
1. If action is "open", immediately redirect to redirectUrl<br>
2. If action is "search", show search results<br>
3. If action is "navigate", show navigation options
</p>
</div>
</div>
<div class="mt-8 pt-4 border-t border-gray-200">
<a href="/" class="text-purple-600 hover:text-purple-800 flex items-center">
<i class="fas fa-arrow-left mr-2"></i> Back to AppWizard
</a>
</div>
</div>
</div>
</div>
</body>
</html>