using System.ComponentModel; using System.ComponentModel.DataAnnotations; using API.Schema.LibraryContext.LibraryConnectors; namespace API.Controllers.Requests; public sealed record CreateLibraryConnectorRecord(LibraryType LibraryType, string Url, string Username, string Password) { /// /// The /// [Required] [Description("The Library Type")] public LibraryType LibraryType { get; init; } = LibraryType; /// /// The Url of the Library instance /// [Required] [Url] [Description("The Url of the Library instance")] public string Url { get; init; } = Url; /// /// The Username to authenticate to the Library instance /// [Required] [Description("The Username to authenticate to the Library instance")] public string Username { get; init; } = Username; /// /// The Password to authenticate to the Library instance /// [Required] [Description("The Password to authenticate to the Library instance")] public string Password { get; init; } = Password; }