Skip to content

Commit be0e417

Browse files
Add Swagger UI enterprise documentation
1 parent 8141ae7 commit be0e417

2 files changed

Lines changed: 79 additions & 0 deletions

File tree

‎docs/api/README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# AEON MATRIX API Documentation
2+
3+
## Swagger UI
4+
5+
Open:
6+
7+
/swagger-ui.html
8+
9+
10+
## API Specification
11+
12+
OpenAPI 3.0.3
13+
14+
## Core Services
15+
16+
### Telemetry Ingestion
17+
POST /api/v1/events
18+
19+
รับ Event จาก WMS, GPS, IoT และ Transport System
20+
21+
22+
### AI Intelligence Engine
23+
POST /api/v1/ai/analyze
24+
25+
วิเคราะห์ Event ด้วย AI Decision Engine
26+
27+
28+
## Event Types
29+
30+
- ORDER_CREATED
31+
- GPS_UPDATED
32+
- STOCK_SHORTAGE
33+
- POLICY_VIOLATION
34+
- ETA_RISK

‎docs/api/swagger-ui.html‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>AEON MATRIX API Documentation</title>
6+
7+
<link rel="stylesheet"
8+
href="https://unpkg.com/swagger-ui-dist/swagger-ui.css" />
9+
10+
</head>
11+
12+
<body>
13+
14+
<div id="swagger-ui"></div>
15+
16+
<script src="https://unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"></script>
17+
<script src="https://unpkg.com/swagger-ui-dist/swagger-ui-standalone-preset.js"></script>
18+
19+
<script>
20+
21+
window.onload = () => {
22+
23+
SwaggerUIBundle({
24+
25+
url: "./openapi.yaml",
26+
27+
dom_id: "#swagger-ui",
28+
29+
deepLinking: true,
30+
31+
presets: [
32+
SwaggerUIBundle.presets.apis,
33+
SwaggerUIStandalonePreset
34+
],
35+
36+
layout: "StandaloneLayout"
37+
38+
});
39+
40+
};
41+
42+
</script>
43+
44+
</body>
45+
</html>

0 commit comments

Comments
 (0)