How justarzun/medical-telemetry-api works
Medical Telemetry API is a Rails service for bearer-token-protected device telemetry ingestion and reading retrieval. A gateway calls the versioned API; authentication validates JWT claims, and telemetry is stored in MySQL. The API also exposes a health check. The publisher service is present in the source index, but the available excerpts do not establish how it is invoked. Relationships involving that service are therefore omitted.
Main entry points: routes.rb API Routes · telemetry_readings_controller.rb Readings API · oidc_authenticatable.rb Bearer Auth · base_controller.rb API Base
Components 10
HTTP API
- API Routes
config/routes.rb - Health Endpoint
app/controllers/health_controller.rb - Readings API
app/controllers/api/v1/telemetry_readings_controller.rb - API Base
app/controllers/api/v1/base_controller.rb
Token Security
- Bearer Auth
app/controllers/concerns/oidc_authenticatable.rb - JWT Verifier
app/services/oidc_token_verifier.rb
Telemetry Data
- Telemetry Reading
app/models/telemetry_reading.rb - Telemetry Publisher
app/services/telemetry_publisher.rb - MySQL Store
Other components
- Device Gateway
Connections 7
- Device Gateway → API Routes: calls API
README.md - API Routes → Health Endpoint: routes health
config/routes.rb - API Routes → Readings API: routes readings
config/routes.rb - API Base → Bearer Auth: includes auth
app/controllers/api/v1/base_controller.rb - Readings API → MySQL Store: stores and retrieves
README.md - Bearer Auth → JWT Verifier: verifies token
- Telemetry Reading → MySQL Store: persists readings