Repository navigation
v1.3.0 — resources reachable over REST
The release that makes resources reachable over REST.
Before this release a client could authenticate but could not get to a resource at all: there was no flat listing, and the only way in was a per-group endpoint whose group ids nothing ever handed out. 1.3.0 closes that path end to end and adds the combined read a polling status view actually wants.
New endpoints
| Endpoint | What it gives you |
|---|---|
GET /api/v1/resources |
Flat list of every resource the caller may read |
GET /api/v1/resources/{id}/values/latest |
Newest reading per telemetry data point |
GET /api/v1/resources/status |
Resource + latest values + monitoring rules in one response |
GET /api/v1/departments/{deptId}/resourcegroups |
The listing that was missing — resource groups could be created and deleted, but never listed |
PUT /api/v1/resourcegroups/{groupId} |
Rename a resource group |
/resources/status exists to collapse a fan-out: assembling the same picture from the individual endpoints costs 1 + 2N HTTP calls for N resources, and a polling client pays that on every tick. Measured against the dev database with one resource: 3 calls / 12 SQL statements → 1 call / 6.
Under the hood
@AuthenticatedUserargument resolver — controllers declare@AuthenticatedUser PUser currentUserinstead of resolving the caller from anAuthenticationthemselves. 14 controllers, 111 parameters, 11 duplicated helpers removed. Carried a bug fix:DepartmentControllerbypassed the resolver, which would have failed under thekeycloakprofile where the token subject is not the username.- The project's first web-layer tests. The path filter chain → open-in-view → argument resolver → controller was covered by no test at all; a green suite said nothing about it. Now exercised over real HTTP against a running container.
- The spec is emitted as OpenAPI 3.0.1 instead of 3.1.0. The contract uses no 3.1-only construct and OpenAPI Generator cannot resolve a 3.1.0 header, so the client harnesses no longer have to rewrite it.
Compatibility
Additive — no existing endpoint changed its path, payload or status codes. The frozen contract in docs/openapi.json is now 83 paths / 51 schemas and is the source for the 1.3.0 client libraries. 477 tests green.