POST /api/artwork/uploads (multipart/form-data) accepting logo and
watermark images. Validates content type (png/jpeg/gif/webp) and size
(SystemEnvironment.MaximumUploadMb, default 10MB) mirroring the Blazor
upload path; stores via IImageCache.SaveArtworkToCache; returns
{ path, contentType } consumable by channel create/update.
Includes handler + controller tests, OpenAPI 422 contract-test entry,
and regenerated v1.json.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
11 lines
473 B
C#
11 lines
473 B
C#
#nullable enable
|
|
namespace ErsatzTV.Core.Api.Artwork;
|
|
|
|
/// <summary>
|
|
/// Result of uploading channel logo / watermark artwork via the REST API.
|
|
/// <see cref="Path" /> is directly consumable as the <c>Path</c> of an
|
|
/// <c>ArtworkContentTypeModel</c> (e.g. <c>CreateChannel.Logo</c> / channel update),
|
|
/// and <see cref="ContentType" /> carries the stored MIME type.
|
|
/// </summary>
|
|
public record ArtworkUploadResponseModel(string Path, string ContentType);
|