75 lines
2.2 KiB
HTML
75 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Core Service</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
.container {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
h1 {
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
}
|
|
.info {
|
|
background: #e8f4f8;
|
|
padding: 15px;
|
|
border-radius: 5px;
|
|
margin: 20px 0;
|
|
}
|
|
.endpoint {
|
|
background: #f8f9fa;
|
|
padding: 10px;
|
|
border-left: 4px solid #007bff;
|
|
margin: 10px 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>🚀 Core Service</h1>
|
|
<div class="info">
|
|
<p><strong>Статус:</strong> Работает</p>
|
|
<p><strong>Порт:</strong> 8080</p>
|
|
<p><strong>Описание:</strong> Основной сервис API Gateway</p>
|
|
</div>
|
|
|
|
<h2>Доступные эндпоинты:</h2>
|
|
<div class="endpoint">
|
|
<strong>GET /</strong> - Главная страница (текущая)
|
|
</div>
|
|
<div class="endpoint">
|
|
<strong>GET /health</strong> - Проверка здоровья сервиса
|
|
</div>
|
|
<div class="endpoint">
|
|
<strong>GET /api/users</strong> - Список пользователей
|
|
</div>
|
|
<div class="endpoint">
|
|
<strong>POST /api/auth/login</strong> - Авторизация
|
|
</div>
|
|
|
|
<h2>Тестирование через API Gateway:</h2>
|
|
<p>
|
|
Попробуйте обратиться к этим эндпоинтам через API Gateway на порту 80:
|
|
</p>
|
|
<ul>
|
|
<li><code>http://localhost/</code></li>
|
|
<li><code>http://localhost/health</code></li>
|
|
<li><code>http://localhost/api/users</code></li>
|
|
<li><code>http://localhost/api/auth/login</code></li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|