Add endpoint to access and modify user information.

This commit is contained in:
2025-11-16 23:08:32 +00:00
parent 5f66029528
commit 5fe5c94c55
26 changed files with 2302 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace Marechai.Data.Models;
public sealed record CreateUserRequest
{
[Required]
[JsonPropertyName("userName")]
public string UserName { get; set; } = null!;
[Required]
[EmailAddress]
[JsonPropertyName("email")]
public string Email { get; set; } = null!;
[Required]
[MinLength(6)]
[JsonPropertyName("password")]
public string Password { get; set; } = null!;
[JsonPropertyName("phoneNumber")]
public string? PhoneNumber { get; set; }
}