From 2d67a565cabec799622ac8eae804694c88828638 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 29 May 2024 03:41:54 +0300 Subject: [PATCH] docs: add xml doc for request --- .../Requests/Configuration/DatabaseRequest.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ApiDto/Requests/Configuration/DatabaseRequest.cs b/ApiDto/Requests/Configuration/DatabaseRequest.cs index 4308471..5da58e3 100644 --- a/ApiDto/Requests/Configuration/DatabaseRequest.cs +++ b/ApiDto/Requests/Configuration/DatabaseRequest.cs @@ -2,21 +2,43 @@ namespace Mirea.Api.Dto.Requests.Configuration; +/// +/// Represents a request to configure the database connection settings. +/// public class DatabaseRequest { + /// + /// Gets or sets the server address. + /// [Required] public required string Server { get; set; } + /// + /// Gets or sets the port number. + /// [Required] public int Port { get; set; } + /// + /// Gets or sets the database name. + /// [Required] public required string Database { get; set; } + /// + /// Gets or sets the username. + /// [Required] public required string User { get; set; } + /// + /// Gets or sets a value indicating whether SSL is enabled. + /// [Required] public bool Ssl { get; set; } + + /// + /// Gets or sets the password. + /// public string? Password { get; set; } } \ No newline at end of file