LibrarConnector DTO and CreateLibraryConnectorRecord

This commit is contained in:
2025-09-06 16:31:16 +02:00
parent 26987c983f
commit 09e6b07186
3 changed files with 36 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
using API.Schema.LibraryContext.LibraryConnectors;
namespace API.Controllers.DTOs;
public record LibraryConnector(string Key, string BaseUrl, LibraryType Type) : Identifiable(Key)
{
[StringLength(256)]
[Required]
[Url]
public string BaseUrl {get; init;} = BaseUrl;
[Required]
public LibraryType Type { get; init; } = Type;
}