- Updated API documentation in AuthController.cs to include an optional "id" field in the authentication request body. - Modified the Login record in Login.cs to require a "Password" field and include optional "Id" and "Username" fields, along with updated documentation comments.
14 lines
523 B
C#
14 lines
523 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace EnvelopeGenerator.GeneratorAPI.Models;
|
|
|
|
/// <summary>
|
|
/// Repräsentiert ein Login-Modell mit erforderlichem Passwort und optionaler ID und Benutzername.
|
|
/// </summary>
|
|
/// <param name="Password">Das erforderliche Passwort für das Login.</param>
|
|
/// <param name="Id">Die optionale ID des Benutzers.</param>
|
|
/// <param name="Username">Der optionale Benutzername.</param>
|
|
public record Login([Required] string Password, int? Id = null, string? Username = null)
|
|
{
|
|
}
|