api-contract: GET /image/:key path pattern does not match real storage key shape #6

Closed
opened 2026-09-20 05:57:46 +00:00 by araemer · 0 comments
Owner

api-contract/src/images.ts models GET /image/:key with a single dynamic path segment. The real storage keys are multi-segment (recipes/{recipeId}/{imageId}.{ext}), served via a wildcard route in recipe-backend's ImageRestResource.ts — the contract's path pattern is inaccurate.

Found during the recipe-backend/recipe-app contract-onboarding audit (recipe-backend PR #13, docs/plans/onboarding-integration.md → Audit Results). Not actioned there since it is a contract-side fix, not a backend one.

Fix: correct the path pattern in api-contract/src/images.ts to reflect the real multi-segment key shape.

`api-contract/src/images.ts` models `GET /image/:key` with a single dynamic path segment. The real storage keys are multi-segment (`recipes/{recipeId}/{imageId}.{ext}`), served via a wildcard route in `recipe-backend`'s `ImageRestResource.ts` — the contract's path pattern is inaccurate. Found during the `recipe-backend`/`recipe-app` contract-onboarding audit (`recipe-backend` PR #13, `docs/plans/onboarding-integration.md` → Audit Results). Not actioned there since it is a contract-side fix, not a backend one. **Fix:** correct the path pattern in `api-contract/src/images.ts` to reflect the real multi-segment key shape.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
araemer/recipe-platform#6
No description provided.