SmartCampusIoTManagementAPI
CentralizedTelemetryforSmartBuildings
01Project Overview
The Smart Campus API is a high-performance backend service built to manage university infrastructure data in real time. It focuses on rooms, hardware sensors, and environmental readings such as temperature, CO2, and occupancy.
The system was intentionally designed for speed and clarity, using in-memory structures, nested resource routing, and dedicated exception handling to keep the API predictable and easy to operate.
02Key Features
HATEOAS Discovery
The root endpoint exposes navigable links so clients can discover API state without hardcoded routes.
Deletion Safeguards
Protects rooms from deletion if active sensors are still attached, preserving referential integrity.
Hardware State Validation
Sensors in maintenance mode reject new telemetry so corrupted readings do not pollute the history.
Filtered Retrieval
Query parameters let clients isolate specific hardware types and reduce response payload size.
Technical Specifications
Core language features used for a lean, predictable runtime footprint.
Resource classes, sub-resource locators, and filters organize the API surface.
Packaged as a WAR and deployed in a servlet container for broad compatibility.
Centralized logging and sanitized error handling give the API predictable behavior under load.
Thread-safe state management keeps request handling fast and lightweight.