Back to Projects
CompletedJavaJAX-RSIoT API

SmartCampusIoTManagementAPI

AlightweightRESTfulbackendforcampusinfrastructurethatmanagesrooms,sensors,andenvironmentaltelemetrythroughin-memorystate,observabilityfilters,andstrictresourcesafeguards.

CentralizedTelemetryforSmartBuildings

TheAPIexposesasecure,hierarchicalinterfaceforrooms,sensors,andreadingssocampusoperatorscanmonitorenvironmentalstatewithoutheavyframeworkoverhead.

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

Language
Java 8

Core language features used for a lean, predictable runtime footprint.

Framework
JAX-RS / Jersey

Resource classes, sub-resource locators, and filters organize the API surface.

Deployment
Apache Tomcat

Packaged as a WAR and deployed in a servlet container for broad compatibility.

Observability
Request / Response Filters

Centralized logging and sanitized error handling give the API predictable behavior under load.

Data Model
In-Memory Concurrent Maps

Thread-safe state management keeps request handling fast and lightweight.