Spaces:
Running
Running
File size: 7,766 Bytes
0102233 |
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
<!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> |