|
1 | | -# Janus HTTP API - Documentation Index |
2 | | - |
3 | | -## Getting Started |
4 | | - |
5 | | -1. **START_HERE.md** - 🚀 BEGIN HERE - Quick start guide |
6 | | -2. **scripts/test_setup.sh** - Automated setup script |
7 | | -3. **docker-compose.yml** - MQTT broker configuration |
8 | | - |
9 | | -## Quick Reference |
10 | | - |
11 | | -4. **QUICK_REFERENCE.md** - One-page cheat sheet |
12 | | -5. **FINAL_TEST.md** - Test verification steps |
13 | | -6. **RUNTIME_FIX_SUMMARY.md** - Runtime panic fix explanation |
14 | | - |
15 | | -## Complete Guides |
16 | | - |
17 | | -7. **SETUP_GUIDE.md** - Comprehensive setup with MQTT |
18 | | -8. **README_HTTP_API.md** - Complete API documentation |
19 | | -9. **COMPLETE_SOLUTION.md** - Full implementation details |
20 | | -10. **HTTP_API_IMPLEMENTATION.md** - Technical architecture |
21 | | - |
22 | | -## Code |
23 | | - |
24 | | -11. **src/http/server.rs** - HTTP server implementation (537 lines) |
25 | | -12. **src/http/mod.rs** - Module exports |
26 | | -13. **src/bin/http_server.rs** - Server binary (111 lines) |
27 | | -14. **examples/http_client_example.rs** - Client example (370 lines) |
28 | | -15. **examples/demo_dashboard.html** - Interactive dashboard (670 lines) |
29 | | - |
30 | | -## Configuration |
31 | | - |
32 | | -16. **docker/mosquitto/config/mosquitto.conf** - MQTT broker config |
33 | | -17. **Cargo.toml** - Dependencies (axum, tower-http, tokio-tungstenite, etc.) |
34 | | - |
35 | | -## How to Use This Documentation |
36 | | - |
37 | | -### If you're brand new: |
38 | | -→ Read **START_HERE.md** |
39 | | - |
40 | | -### If you want quick commands: |
41 | | -→ Read **QUICK_REFERENCE.md** |
42 | | - |
43 | | -### If you see runtime panics: |
44 | | -→ Read **RUNTIME_FIX_SUMMARY.md** |
45 | | - |
46 | | -### If you need detailed setup: |
47 | | -→ Read **SETUP_GUIDE.md** |
48 | | - |
49 | | -### If you want to understand the API: |
50 | | -→ Read **README_HTTP_API.md** |
51 | | - |
52 | | -### If you need implementation details: |
53 | | -→ Read **COMPLETE_SOLUTION.md** or **HTTP_API_IMPLEMENTATION.md** |
54 | | - |
55 | | -### If you want to verify everything works: |
56 | | -→ Follow **FINAL_TEST.md** |
57 | | - |
58 | | -## File Sizes |
59 | | - |
60 | | -``` |
61 | | -START_HERE.md ~1 KB (Quick start) |
62 | | -QUICK_REFERENCE.md ~2 KB (Cheat sheet) |
63 | | -RUNTIME_FIX_SUMMARY.md ~3 KB (Fix explanation) |
64 | | -FINAL_TEST.md ~3 KB (Testing guide) |
65 | | -SETUP_GUIDE.md ~18 KB (Detailed setup) |
66 | | -README_HTTP_API.md ~15 KB (API guide) |
67 | | -COMPLETE_SOLUTION.md ~9 KB (Solution summary) |
68 | | -HTTP_API_IMPLEMENTATION.md ~19 KB (Technical details) |
69 | | -
|
70 | | -src/http/server.rs ~15 KB (Server code) |
71 | | -examples/demo_dashboard.html ~20 KB (Dashboard) |
72 | | -examples/http_client_example.rs ~11 KB (Client example) |
73 | | -``` |
74 | | - |
75 | | -## Priority Reading Order |
76 | | - |
77 | | -1. START_HERE.md |
78 | | -2. QUICK_REFERENCE.md |
79 | | -3. SETUP_GUIDE.md (if needed) |
80 | | -4. README_HTTP_API.md (for API details) |
81 | | - |
82 | | -The rest are reference materials for specific needs. |
83 | | - |
84 | | ---- |
85 | | - |
86 | | -**Total: ~115 KB of documentation + ~50 KB of code** |
87 | | -**Everything you need to use Janus HTTP API successfully!** |
| 1 | +# Janus Documentation Index |
| 2 | + |
| 3 | +This is the shortest path to understanding the current Janus implementation. |
| 4 | + |
| 5 | +## Core Reading Order |
| 6 | + |
| 7 | +1. [../README.md](../README.md) |
| 8 | +2. [JANUSQL.md](./JANUSQL.md) |
| 9 | +3. [QUERY_EXECUTION.md](./QUERY_EXECUTION.md) |
| 10 | +4. [BASELINES.md](./BASELINES.md) |
| 11 | +5. [HTTP_API_CURRENT.md](./HTTP_API_CURRENT.md) |
| 12 | +6. [ANOMALY_DETECTION.md](./ANOMALY_DETECTION.md) |
| 13 | + |
| 14 | +## What Each File Covers |
| 15 | + |
| 16 | +- [JANUSQL.md](./JANUSQL.md) |
| 17 | + - query structure |
| 18 | + - supported window types |
| 19 | + - `USING BASELINE <window> LAST|AGGREGATE` |
| 20 | + - how live and historical queries are derived |
| 21 | + |
| 22 | +- [QUERY_EXECUTION.md](./QUERY_EXECUTION.md) |
| 23 | + - registration and parsed metadata |
| 24 | + - `start_query()` flow |
| 25 | + - historical workers |
| 26 | + - live workers and MQTT subscription |
| 27 | + - result multiplexing and runtime status |
| 28 | + |
| 29 | +- [BASELINES.md](./BASELINES.md) |
| 30 | + - what baseline bootstrap does |
| 31 | + - `LAST` vs `AGGREGATE` |
| 32 | + - async warm-up behavior |
| 33 | + - what state is and is not retained |
| 34 | + |
| 35 | +- [HTTP_API_CURRENT.md](./HTTP_API_CURRENT.md) |
| 36 | + - current REST endpoints |
| 37 | + - WebSocket result flow |
| 38 | + - request and response shapes |
| 39 | + - `baseline_mode` registration fallback |
| 40 | + |
| 41 | +- [ANOMALY_DETECTION.md](./ANOMALY_DETECTION.md) |
| 42 | + - when extension functions are enough |
| 43 | + - when baseline state helps |
| 44 | + - recommended query patterns |
| 45 | + |
| 46 | +## Legacy Material |
| 47 | + |
| 48 | +The following files remain useful as background, but they are not the main entrypoint for the current code: |
| 49 | + |
| 50 | +- [ARCHITECTURE.md](./ARCHITECTURE.md) |
| 51 | +- [EXECUTION_ARCHITECTURE.md](./EXECUTION_ARCHITECTURE.md) |
| 52 | +- [HTTP_API.md](./HTTP_API.md) |
| 53 | +- [README_HTTP_API.md](./README_HTTP_API.md) |
| 54 | +- [SETUP_GUIDE.md](./SETUP_GUIDE.md) |
| 55 | + |
| 56 | +## Related Code |
| 57 | + |
| 58 | +- [../src/parsing/janusql_parser.rs](../src/parsing/janusql_parser.rs) |
| 59 | +- [../src/api/janus_api.rs](../src/api/janus_api.rs) |
| 60 | +- [../src/http/server.rs](../src/http/server.rs) |
| 61 | +- [../src/stream/live_stream_processing.rs](../src/stream/live_stream_processing.rs) |
| 62 | +- [../src/execution/historical_executor.rs](../src/execution/historical_executor.rs) |
0 commit comments