All in all, your first RESTful API in Python is about piecing together clear endpoints, matching them with the right HTTP ...
IoT Devices → WebSocket → OS Scheduler → AI Engine → Flask API → Dashboard ↓ ↓ ↓ ↓ ↓ ↓ ECG/BP/SpO2 Socket.IO Priority Q SVD/PCA REST + WS Chart.js ...