7.2 FramesController.UploadImageUrl

This commit is contained in:
2026-06-07 15:53:27 +02:00
parent 3bef27b286
commit 3e01fa7980
2 changed files with 54 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
- `Task<Stream> FetchAsync(Uri, CancellationToken)` — streams response, aborts if content exceeds `MaxBytes`.
- Throws a typed exception (`ImageFetchException`) for timeout / non-2xx / too-large / redirect-loop.
### [ ] 7.2 `FramesController.UploadImageUrl`
### [x] 7.2 `FramesController.UploadImageUrl`
- Route: `POST /api/frames/{name}/image-url`, body `{ "url": "..." }`.
- Fetch → pipeline → store → publish. Same response shape as 5.1.
- Map `ImageFetchException` to `502 Bad Gateway`.