Fix API Endpoint Mismatches
The Angular frontend was built against an older or different API contract. Several endpoints called by the frontend do not match what the backend actually exposes.
Mismatches to Fix
π΄ Critical β Frontend calls that fail
| Frontend Call |
What It Does |
Backend Reality |
Fix |
POST /keys with body {key, value} |
Insert/update |
Backend has PUT /keys/{key} with body {value} |
Fix frontend: change to PUT /keys/{key} or fix backend: register POST /keys handler |
GET /keys/search?q=&prefix= |
Search keys |
No such endpoint |
Fix backend: register GET /keys/search or fix frontend: use GET /keys?prefix= |
POST /keys/batch |
Batch insert |
No such endpoint |
Fix backend: register batch endpoint |
GET /scan |
Scan all keys |
No such REST endpoint |
Fix backend: register GET /scan or use GraphQL |
π‘ Medium β Endpoints that partially work
| Frontend Call |
Backend Reality |
Fix |
GET /stats/all |
Backend has GET /stats |
Align frontend to use /stats |
GET /health |
Backend has /health/liveness, /health/readiness, /health/startup |
Align frontend to use correct health endpoints |
Missing Backend Endpoints (Frontend expects them)
The following pages are fully built in the frontend but have NO backend routes:
| Frontend Page |
Endpoints Needed |
Status |
Features (/features) |
GET /features, POST /features/{name} |
Backend src/features/ exists but has no API handlers |
Admin Tokens (/admin) |
GET /admin/tokens, POST /admin/tokens, DELETE /admin/tokens/{id} |
TokenManager exists but no REST routes |
Files to Modify
Frontend:
frontend/src/app/services/apex-store.service.ts β Update endpoint URLs
Backend:
src/api/mod.rs β Register new endpoints
src/api/admin/mod.rs β Token CRUD routes
src/features/mod.rs β Feature flag API handlers (or new src/api/features.rs)
Acceptance Criteria
Parent Epic
#290
Fix API Endpoint Mismatches
The Angular frontend was built against an older or different API contract. Several endpoints called by the frontend do not match what the backend actually exposes.
Mismatches to Fix
π΄ Critical β Frontend calls that fail
POST /keyswith body{key, value}PUT /keys/{key}with body{value}PUT /keys/{key}or fix backend: registerPOST /keyshandlerGET /keys/search?q=&prefix=GET /keys/searchor fix frontend: useGET /keys?prefix=POST /keys/batchGET /scanGET /scanor use GraphQLπ‘ Medium β Endpoints that partially work
GET /stats/allGET /stats/statsGET /health/health/liveness,/health/readiness,/health/startupMissing Backend Endpoints (Frontend expects them)
The following pages are fully built in the frontend but have NO backend routes:
/features)GET /features,POST /features/{name}src/features/exists but has no API handlers/admin)GET /admin/tokens,POST /admin/tokens,DELETE /admin/tokens/{id}Files to Modify
Frontend:
frontend/src/app/services/apex-store.service.tsβ Update endpoint URLsBackend:
src/api/mod.rsβ Register new endpointssrc/api/admin/mod.rsβ Token CRUD routessrc/features/mod.rsβ Feature flag API handlers (or newsrc/api/features.rs)Acceptance Criteria
Parent Epic
#290