File size: 3,012 Bytes
08a83f3 0478827 08a83f3 0478827 08a83f3 0478827 08a83f3 0478827 08a83f3 0478827 08a83f3 0478827 08a83f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | <!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>
"command": string,<br>
"type": "voice"|"text"|"quick"<br>
}<br><br>
Response:<br>
{<br>
"success": boolean,<br>
"message": string,<br>
"redirectUrl": string,<br>
"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> |