|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<meta name="description" content="Explore MGZon Chatbot API documentation for integrating AI-powered code generation and e-commerce tools."> |
|
<meta name="keywords" content="MGZon Chatbot, API documentation, code generation, e-commerce, FastAPI, Mark Al-Asfar"> |
|
<meta name="author" content="Mark Al-Asfar"> |
|
<meta name="robots" content="index, follow"> |
|
<title>API Documentation - MGZon Chatbot</title> |
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
|
<link rel="apple-touch-icon" href="/static/images/mg.svg"> |
|
|
|
<meta property="og:title" content="API Documentation - MGZon Chatbot"> |
|
<meta property="og:description" content="Explore MGZon Chatbot API documentation for integrating AI-powered code generation and e-commerce tools."> |
|
<meta property="og:image" content="/static/images/mg.svg"> |
|
<meta property="og:url" content="https://mgzon-mgzon-app.hf.space/docs"> |
|
<meta property="og:type" content="website"> |
|
|
|
<meta name="twitter:card" content="summary_large_image"> |
|
<meta name="twitter:title" content="API Documentation - MGZon Chatbot"> |
|
<meta name="twitter:description" content="Explore MGZon Chatbot API documentation for integrating AI-powered code generation and e-commerce tools."> |
|
<meta name="twitter:image" content="/static/images/mg.svg"> |
|
|
|
<script type="application/ld+json"> |
|
{ |
|
"@context": "https://schema.org", |
|
"@type": "WebPage", |
|
"name": "API Documentation - MGZon Chatbot", |
|
"url": "https://mgzon-mgzon-app.hf.space/docs", |
|
"description": "Explore MGZon Chatbot API documentation for integrating AI-powered code generation and e-commerce tools.", |
|
"keywords": ["MGZon Chatbot", "API documentation", "code generation", "e-commerce", "FastAPI", "Mark Al-Asfar", "MGZon", "MGZon AI", "AI chatbot", "Code generation bot", "Python AI chatbot", "FastAPI integration", "AI for coding", "AI developer tools", "text generation"], |
|
"isPartOf": { |
|
"@type": "WebSite", |
|
"name": "MGZon Chatbot", |
|
"url": "https://mgzon-mgzon-app.hf.space/" |
|
} |
|
} |
|
</script> |
|
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
|
<link href="https://cdn.jsdelivr.net/npm/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet"> |
|
|
|
<link href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism.min.css" rel="stylesheet"> |
|
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"></script> |
|
<style> |
|
@keyframes gradientShift { |
|
0% { background-position: 0% 50%; } |
|
50% { background-position: 100% 50%; } |
|
100% { background-position: 0% 50%; } |
|
} |
|
body { |
|
background: linear-gradient(135deg, #0f172a, #0e7490, #065f46, #064e3b); |
|
background-size: 400% 400%; |
|
animation: gradientShift 15s ease infinite; |
|
font-family: system-ui, sans-serif; |
|
} |
|
.glass { |
|
background: rgba(255, 255, 255, 0.07); |
|
border-radius: 1rem; |
|
border: 1px solid rgba(255, 255, 255, 0.12); |
|
backdrop-filter: blur(12px); |
|
-webkit-backdrop-filter: blur(12px); |
|
} |
|
.sidebar { |
|
transition: transform 0.3s ease-in-out; |
|
} |
|
.sidebar.collapsed .logo { |
|
opacity: 0; |
|
transition: opacity 0.2s ease; |
|
} |
|
.main-content { |
|
min-height: calc(100vh - 4rem); |
|
} |
|
.glass:hover { |
|
transform: scale(1.05); |
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); |
|
background: rgba(255, 255, 255, 0.15); |
|
} |
|
@media (max-width: 768px) { |
|
.sidebar { |
|
transform: translateX(-100%); |
|
} |
|
.sidebar.active { |
|
transform: translateX(0); |
|
} |
|
} |
|
</style> |
|
</head> |
|
<body class="text-white flex flex-col min-h-screen"> |
|
|
|
<button id="sidebarToggle" class="md:hidden fixed top-4 left-4 z-50 p-2 text-2xl text-white rounded bg-gray-800/60 hover:bg-gray-700/80 transition" aria-label="Toggle navigation"> |
|
<i class="bx bx-menu"></i> |
|
</button> |
|
|
|
<aside id="sidebar" class="sidebar fixed inset-y-0 left-0 w-64 bg-gradient-to-b from-teal-800 to-emerald-900 p-6 flex flex-col overflow-y-auto z-40"> |
|
<button id="closeSidebar" class="md:hidden text-white text-2xl absolute top-4 right-4" aria-label="Close sidebar">✕</button> |
|
<img src="/static/images/mg.svg" alt="MGZon Logo" class="logo w-20 h-20 mx-auto mb-8 animate-pulse"> |
|
<nav class="flex flex-col gap-3"> |
|
<a href="/" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">Home</a> |
|
<a href="/docs" class="px-4 py-2 rounded-lg bg-emerald-600">API Documentation</a> |
|
<a href="/about" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">About MGZon</a> |
|
<a href="/login" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">Login</a> |
|
<a href="/register" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">Register</a> |
|
<a href="https://hager-zon.vercel.app/community" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">Community</a> |
|
<a href="https://mark-elasfar.web.app/" target="_blank" class="px-4 py-2 rounded-lg hover:bg-emerald-600 transition">Mark Al-Asfar</a> |
|
</nav> |
|
</aside> |
|
|
|
<main class="flex-1 md:ml-64 p-6 main-content"> |
|
<section class="container max-w-6xl mx-auto"> |
|
<div class="text-center py-12"> |
|
<img src="/static/images/mg.svg" alt="MGZon Logo" class="w-32 h-32 mx-auto mb-6 animate-bounce"> |
|
<h1 class="text-5xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-teal-300 to-emerald-400">About MGZon AI by Mark Al-Asfar</h1> |
|
MGZon Chatbot API Documentation |
|
</h1> |
|
<p class="text-lg max-w-2xl mx-auto mb-8"> |
|
Integrate MGZon Chatbot's AI-powered features into your applications. Learn how to use our APIs for code generation, web search, and e-commerce solutions. |
|
</p> |
|
<p>Explore the MGZon Chatbot API for seamless integration of AI-powered code generation, text generation, and e-commerce automation. Built by Mark Al-Asfar using FastAPI and Hugging Face AI.</p> |
|
<a href="https://x.ai/api" target="_blank" class="inline-flex items-center bg-gradient-to-r from-emerald-500 to-teal-600 text-white px-8 py-4 rounded-full text-lg font-semibold hover:scale-105 transition-transform shadow-lg hover:shadow-xl"> |
|
Get API Key <i class="bx bx-key ml-2"></i> |
|
</a> |
|
</div> |
|
|
|
<section class="my-12"> |
|
<h2 class="text-3xl font-bold text-center mb-8">API Overview</h2> |
|
<div class="glass p-6"> |
|
<p class="mb-4">The MGZon Chatbot API provides endpoints for code generation, real-time web search, and e-commerce functionalities. Built with FastAPI, it offers secure and scalable integration.</p> |
|
<p>Base URL: <code class="bg-gray-800/60 p-1 rounded">https://mgzon-mgzon-app.hf.space/api</code></p> |
|
</div> |
|
</section> |
|
|
|
<section class="my-12"> |
|
<h2 class="text-3xl font-bold text-center mb-8">Authentication</h2> |
|
<div class="glass p-6"> |
|
<p class="mb-4">Use JWT tokens for authentication. Register or login to obtain a token.</p> |
|
<pre><code class="language-bash"> |
|
curl -X POST "https://mgzon-mgzon-app.hf.space/auth/jwt/login" \ |
|
-H "Content-Type: application/x-www-form-urlencoded" \ |
|
-d "username=your_email&password=your_password" |
|
</code></pre> |
|
</div> |
|
</section> |
|
|
|
<section class="my-12"> |
|
<h2 class="text-3xl font-bold text-center mb-8">Endpoints</h2> |
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6"> |
|
<div class="glass p-6"> |
|
<h3 class="text-xl font-semibold mb-2">/chat (POST)</h3> |
|
<p class="mb-4">Interact with the AI chatbot for code generation or queries.</p> |
|
<pre><code class="language-bash"> |
|
curl -X POST "https://mgzon-mgzon-app.hf.space/chat" \ |
|
-H "Authorization: Bearer your_token" \ |
|
-H "Content-Type: application/json" \ |
|
-d '{"message": "Generate a Python function"}' |
|
</code></pre> |
|
</div> |
|
<div class="glass p-6"> |
|
<h3 class="text-xl font-semibold mb-2">/web_search (POST)</h3> |
|
<p class="mb-4">Perform real-time web searches.</p> |
|
<pre><code class="language-bash"> |
|
curl -X POST "https://mgzon-mgzon-app.hf.space/web_search" \ |
|
-H "Authorization: Bearer your_token" \ |
|
-H "Content-Type: application/json" \ |
|
-d '{"query": "AI trends 2025"}' |
|
</code></pre> |
|
</div> |
|
</div> |
|
</section> |
|
|
|
<section class="my-12"> |
|
<h2 class="text-3xl font-bold text-center mb-8">Getting Started</h2> |
|
<div class="glass p-6"> |
|
<p class="mb-4">1. Register at <a href="/register" class="text-emerald-300 hover:underline">/register</a>.</p> |
|
<p class="mb-4">2. Obtain your API key from <a href="https://x.ai/api" target="_blank" class="text-emerald-300 hover:underline">xAI API</a>.</p> |
|
<p>3. Use the endpoints above to integrate MGZon Chatbot into your application.</p> |
|
</div> |
|
</section> |
|
</section> |
|
</main> |
|
|
|
<footer class="bg-gradient-to-r from-teal-900 to-emerald-900 py-12 mt-8"> |
|
<div class="container max-w-6xl mx-auto text-center"> |
|
<img src="/static/images/mg.svg" alt="MGZon Chatbot Logo by Mark Al-Asfar" class="w-32 h-32 mx-auto mb-6 animate-bounce"> |
|
<p class="mb-4"> |
|
Developed by <a href="https://mark-elasfar.web.app/" target="_blank" class="text-emerald-300 hover:underline">Mark Al-Asfar</a> |
|
| Powered by <a href="https://hager-zon.vercel.app/" target="_blank" class="text-emerald-300 hover:underline">MGZon AI</a> |
|
</p> |
|
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6"> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('email')"> |
|
<i class="bx bx-mail-send text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">Email Us</h4> |
|
<p><a href="mailto:support@mgzon.com" class="text-emerald-300 hover:underline">support@mgzon.com</a></p> |
|
<div id="email-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Reach out to our support team for any inquiries or assistance.</p> |
|
<button onclick="closeCardDetails('email')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('phone')"> |
|
<i class="bx bx-phone text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">Phone Support</h4> |
|
<p>+1-800-123-4567</p> |
|
<div id="phone-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Contact our support team via phone for immediate assistance.</p> |
|
<button onclick="closeCardDetails('phone')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('community')"> |
|
<i class="bx bx-group text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">Community</h4> |
|
<p><a href="https://hager-zon.vercel.app/community" class="text-emerald-300 hover:underline">Join us</a></p> |
|
<div id="community-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Join our vibrant community to share ideas and collaborate.</p> |
|
<button onclick="closeCardDetails('community')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('api-docs')"> |
|
<i class="bx bx-code-alt text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">API Docs</h4> |
|
<p><a href="/docs" class="text-emerald-300 hover:underline">Explore Docs</a></p> |
|
<div id="api-docs-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Explore our API documentation for seamless integration.</p> |
|
<button onclick="closeCardDetails('api-docs')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('faq')"> |
|
<i class="bx bx-help-circle text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">FAQ</h4> |
|
<p><a href="https://hager-zon.vercel.app/faq" target="_blank" class="text-emerald-300 hover:underline">Read FAQ</a></p> |
|
<div id="faq-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Find answers to common questions in our FAQ section.</p> |
|
<button onclick="closeCardDetails('faq')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
<div class="glass p-4 cursor-pointer" onclick="showCardDetails('docs')"> |
|
<i class="bx bx-book text-3xl text-emerald-300 mb-2"></i> |
|
<h4 class="font-semibold mb-1">Documentation</h4> |
|
<p><a href="/docs" class="text-emerald-300 hover:underline">Full Docs</a></p> |
|
<div id="docs-details" class="hidden mt-4 p-4 bg-gray-700/80 rounded-lg"> |
|
<p>Access comprehensive documentation for MGZon Chatbot.</p> |
|
<button onclick="closeCardDetails('docs')" class="bg-emerald-500 text-white px-4 py-2 rounded-lg mt-2">Close</button> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="flex justify-center gap-6 mt-6"> |
|
<a href="https://github.com/Mark-Lasfar/MGZon" class="text-2xl text-white hover:text-emerald-300 transition"><i class="bx bxl-github"></i></a> |
|
<a href="https://x.com/MGZon" class="text-2xl text-white hover:text-emerald-300 transition"><i class="bx bxl-twitter"></i></a> |
|
<a href="https://www.facebook.com/people/Mark-Al-Asfar/pfbid02GMisUQ8AqWkNZjoKtWFHH1tbdHuVscN1cjcFnZWy9HkRaAsmanBfT6mhySAyqpg4l/" class="text-2xl text-white hover:text-emerald-300 transition"><i class="bx bxl-facebook"></i></a> |
|
</div> |
|
<p class="mt-6">© 2025 Mark Al-Asfar & MGZon AI. All rights reserved.</p> |
|
</div> |
|
</footer> |
|
<script> |
|
const sidebar = document.getElementById('sidebar'); |
|
const toggleBtn = document.getElementById('sidebarToggle'); |
|
const closeSidebarBtn = document.getElementById('closeSidebar'); |
|
toggleBtn.addEventListener('click', () => { |
|
sidebar.classList.toggle('active'); |
|
sidebar.classList.toggle('-translate-x-full'); |
|
sidebar.classList.toggle('translate-x-0'); |
|
}); |
|
closeSidebarBtn.addEventListener('click', () => { |
|
sidebar.classList.remove('active'); |
|
sidebar.classList.add('-translate-x-full'); |
|
sidebar.classList.remove('translate-x-0'); |
|
}); |
|
document.addEventListener('click', (e) => { |
|
if (!sidebar.contains(e.target) && !toggleBtn.contains(e.target) && window.innerWidth < 768) { |
|
sidebar.classList.remove('active'); |
|
sidebar.classList.add('-translate-x-full'); |
|
sidebar.classList.remove('translate-x-0'); |
|
} |
|
}); |
|
function showCardDetails(cardId) { |
|
document.getElementById(`${cardId}-details`).classList.remove('hidden'); |
|
} |
|
function closeCardDetails(cardId) { |
|
document.getElementById(`${cardId}-details`).classList.add('hidden'); |
|
} |
|
</script> |
|
</body> |
|
</html> |
|
|