This commit introduces the `[ApiExplorerSettings(IgnoreApi = true)]` attribute to various DTO classes to exclude them from API documentation. The `using Microsoft.AspNetCore.Mvc;` directive has been added to several files to support ASP.NET Core MVC features. Additionally, comments in `HistoryController.cs` have been reformatted for clarity, and `LocalizationController.cs` has been updated with standard API controller attributes. These changes improve code organization and maintain cleaner API documentation.
24 lines
656 B
C#
24 lines
656 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
|
|
{
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public record EnvelopeReceiverReadOnlyCreateDto(
|
|
DateTime DateValid)
|
|
{
|
|
[EmailAddress]
|
|
[Required]
|
|
public required string ReceiverMail { get; init; }
|
|
|
|
[JsonIgnore]
|
|
public long? EnvelopeId { get; set; } = null;
|
|
|
|
[JsonIgnore]
|
|
public string? AddedWho { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public DateTime AddedWhen { get; } = DateTime.Now;
|
|
};
|
|
} |