LOW: Missing frontend API client for GET /api/news/:id and GET /api/pricing/:id endpoints #16
Labels
No labels
blocked:needs-human
blocked:verify-failed
bug
feature-request
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/subvault#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
Location
src/lib/api.tslines 104–117Description
The backend defines these endpoints:
GET /api/news/:id— get single news itemGET /api/pricing/:id— get single pricing entryBut the frontend API client only exposes:
pricingApi.getAll()— missinggetByIdnewsApi.getAll()— missinggetByIdWhile the frontend currently doesn't use individual detail views, the endpoints exist but are unreachable from the frontend.
Impact
Suggested Fix
Add the missing methods:
(Note:
newsApi.getByIdis already missing from the current code;pricingApi.getByIdis also not exposed)GSD VERIFY phase failed after 3 attempts.
Conformance failure: Unexpected files modified: src/lib/api.ts; Expected files not modified: /home/b/Projects/subvault/src/lib/api.ts