7.2 FramesController.UploadImageUrl

This commit is contained in:
zyberzero committed 2026-06-07 15:53:27 +02:00
1 parent 3bef27b286
commit 3e01fa7980
2 files changed
+54 -2

No files matched your search

+1 -1
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`.