Sami
s
0102233
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Documentation | IA Hospital Hub</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<link rel="icon" type="image/png" href="https://cdn-icons-png.flaticon.com/512/9373/9373979.png">
<style>
.api-method {
@apply px-2 py-1 rounded-lg text-sm font-mono flex items-center gap-2;
}
.api-method.get {
@apply bg-green-600 text-white;
}
.api-method.post {
@apply bg-blue-600 text-white;
}
.api-method.put {
@apply bg-yellow-600 text-white;
}
.api-method.delete {
@apply bg-red-600 text-white;
}
.code-block {
@apply bg-gray-900 p-4 rounded-lg font-mono text-sm overflow-x-auto;
}
</style>
</head>
<body class="bg-gradient-to-br from-gray-900 to-gray-800 text-white min-h-screen">
<nav class="bg-gray-800 bg-opacity-90 p-4 sticky top-0 z-50 shadow-lg">
<div class="max-w-6xl mx-auto flex justify-between items-center">
<a href="/" class="text-2xl font-bold text-blue-400 flex items-center gap-2 no-underline">
<img src="https://cdn-icons-png.flaticon.com/512/9373/9373979.png" alt="IA Hospital Hub" class="w-8 h-8 md:w-10 md:h-10 object-contain">
<span class="whitespace-nowrap text-lg md:text-2xl">IA Hospital Hub</span>
</a>
</div>
</nav>
<main class="max-w-6xl mx-auto p-8">
<h1 class="text-4xl font-bold mb-8 flex items-center gap-4">
<img src="https://cdn-icons-png.flaticon.com/512/8422/8422166.png" alt="API" class="w-10 h-10">
API Documentation
</h1>
<div class="space-y-12">
<!-- AutoGlaucoma API -->
<section class="bg-gray-800 bg-opacity-50 p-6 rounded-xl">
<div class="flex items-center gap-4 mb-6">
<img src="https://cdn-icons-png.flaticon.com/512/4497/4497889.png" alt="AutoGlaucoma" class="w-12 h-12">
<h2 class="text-2xl font-bold text-blue-400">AutoGlaucoma API</h2>
</div>
<div class="space-y-6">
<!-- Analyze Endpoint -->
<div class="border border-gray-700 rounded-lg p-6">
<div class="flex items-center gap-4 mb-4">
<span class="api-method post">
<img src="https://cdn-icons-png.flaticon.com/512/1834/1834791.png" alt="POST" class="w-4 h-4">
POST
</span>
<code class="text-gray-300">/api/v1/glaucoma/analyze</code>
</div>
<p class="text-gray-300 mb-4">Analiza una imagen para detectar glaucoma.</p>
<div class="code-block mb-4">
<pre class="text-gray-300">{
"image": "base64_encoded_image",
"patient_id": "string",
"metadata": {
"age": "number",
"gender": "string"
}
}</pre>
</div>
<div class="bg-gray-700 bg-opacity-50 p-4 rounded-lg">
<div class="flex items-center gap-3 mb-3">
<img src="https://cdn-icons-png.flaticon.com/512/561/561170.png" alt="Response" class="w-6 h-6">
<h4 class="font-bold">Response</h4>
</div>
<pre class="text-gray-300">{
"prediction": "boolean",
"confidence": "number",
"heatmap": "base64_encoded_image"
}</pre>
</div>
</div>
<!-- Get Results Endpoint -->
<div class="border border-gray-700 rounded-lg p-6">
<div class="flex items-center gap-4 mb-4">
<span class="api-method get">
<img src="https://cdn-icons-png.flaticon.com/512/1834/1834886.png" alt="GET" class="w-4 h-4">
GET
</span>
<code class="text-gray-300">/api/v1/glaucoma/results/{patient_id}</code>
</div>
<p class="text-gray-300 mb-4">Obtiene resultados históricos de un paciente.</p>
<div class="bg-gray-700 bg-opacity-50 p-4 rounded-lg">
<div class="flex items-center gap-3 mb-3">
<img src="https://cdn-icons-png.flaticon.com/512/561/561170.png" alt="Response" class="w-6 h-6">
<h4 class="font-bold">Response</h4>
</div>
<pre class="text-gray-300">{
"results": [
{
"date": "string",
"prediction": "boolean",
"confidence": "number"
}
]
}</pre>
</div>
</div>
</div>
</section>
<!-- AutoMedical API -->
<section class="bg-gray-800 bg-opacity-50 p-6 rounded-xl">
<div class="flex items-center gap-4 mb-6">
<img src="https://cdn-icons-png.flaticon.com/512/9512/9512757.png" alt="AutoMedical" class="w-12 h-12">
<h2 class="text-2xl font-bold text-blue-400">AutoMedical API</h2>
</div>
<div class="space-y-6">
<!-- Analyze Report Endpoint -->
<div class="border border-gray-700 rounded-lg p-6">
<div class="flex items-center gap-4 mb-4">
<span class="api-method post">
<img src="https://cdn-icons-png.flaticon.com/512/1834/1834791.png" alt="POST" class="w-4 h-4">
POST
</span>
<code class="text-gray-300">/api/v1/medical/analyze</code>
</div>
<p class="text-gray-300 mb-4">Analiza un informe médico completo.</p>
<div class="code-block mb-4">
<pre class="text-gray-300">{
"report": "string",
"type": "string",
"patient_data": {
"id": "string",
"history": "string"
}
}</pre>
</div>
<div class="bg-gray-700 bg-opacity-50 p-4 rounded-lg">
<div class="flex items-center gap-3 mb-3">
<img src="https://cdn-icons-png.flaticon.com/512/561/561170.png" alt="Response" class="w-6 h-6">
<h4 class="font-bold">Response</h4>
</div>
<pre class="text-gray-300">{
"analysis": {
"diagnosis": "string",
"confidence": "number",
"recommendations": ["string"]
}
}</pre>
</div>
</div>
</div>
</section>
</div>
</main>
<footer class="bg-gray-800/50 backdrop-blur-lg mt-12 py-12 border-t border-white/10">
<div class="max-w-6xl mx-auto px-8">
<div class="text-center text-gray-400">
<p>© 2024 IA Hospital Hub. Todos los derechos reservados.</p>
</div>
</div>
</footer>
</body>
</html>