blob: c8cc004bf35306980eb7f9cd35b350fdb3a9c101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System.ComponentModel.DataAnnotations;
using Timeline.Controllers;
using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
/// <summary>
/// Request model for <see cref="UserController.Post(HttpUserPostRequest)"/>.
/// </summary>
public class HttpUserPostRequest
{
/// <summary>
/// Username of the new user.
/// </summary>
[Required, Username]
public string Username { get; set; } = default!;
/// <summary>
/// Password of the new user.
/// </summary>
[Required, MinLength(1)]
public string Password { get; set; } = default!;
}
}
|