api hardening

This commit is contained in:
2026-03-16 10:46:05 +00:00
parent 598e4a6077
commit 023a8e9e6d
8 changed files with 378 additions and 24 deletions
+16
View File
@@ -610,6 +610,22 @@
- Added focused test file:
- `tests/phase19/service-behaviour.test.cjs` (5/5 pass)
## Phase 20 endpoint consistency slice (2026-03-14)
- Continued on branch:
- `TASK22057-phase17-hardening-closeout`
- Applied a small consistency-only slice across:
- `pages/api/endpoint/getbasicdnssearch_api.js`
- `pages/api/endpoint/getbasicdnsurlsearch_api.js`
- `pages/api/endpoint/getbasicsearchdetailspaged_api.js`
- Scope:
- removed noisy query logging in `getbasicdnssearch_api`
- added early 400 for missing/empty `searchString` in `getbasicdnsurlsearch_api`
- added early 400 for missing required params in `getbasicsearchdetailspaged_api`
- preserved response shapes/signatures
- Added focused test file:
- `tests/phase20/service-behaviour.test.cjs` (5/5 pass)
## Likely next steps
1. Stabilize and simplify breadcrumb/back-link decision logic with focused regression checks.