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

@@ -9,18 +9,9 @@ namespace API.Schema.LibraryContext.LibraryConnectors;
[PrimaryKey("Key")]
public abstract class LibraryConnector : Identifiable
{
[Required]
public LibraryType LibraryType { get; init; }
[StringLength(256)]
[Required]
[Url]
public string BaseUrl { get; init; }
[StringLength(256)]
[Required]
public string Auth { get; init; }
[JsonIgnore]
[NotMapped]
protected ILog Log { get; init; }
protected LibraryConnector(LibraryType libraryType, string baseUrl, string auth)