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.
71 lines
1.9 KiB
C#
71 lines
1.9 KiB
C#
using DigitalData.Core.Abstractions;
|
|
using DigitalData.EmailProfilerDispatcher.Abstraction.Attributes;
|
|
using DigitalData.UserManager.Application.DTOs.User;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs
|
|
{
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public record EnvelopeDto() : IUnique<int>
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int UserId { get; set; }
|
|
|
|
public int Status { get; set; }
|
|
|
|
public string StatusName { get; set; }
|
|
|
|
public string Uuid { get; set; }
|
|
|
|
[TemplatePlaceholder("[MESSAGE]")]
|
|
public string Message { get; set; }
|
|
public DateTime? ExpiresWhen { get; set; }
|
|
public DateTime? ExpiresWarningWhen { get; set; }
|
|
public DateTime AddedWhen { get; set; }
|
|
public DateTime? ChangedWhen { get; set; }
|
|
|
|
[TemplatePlaceholder("[DOCUMENT_TITLE]")]
|
|
public string Title { get; set; }
|
|
|
|
public int? ContractType { get; set; }
|
|
|
|
public string Language { get; set; }
|
|
|
|
public bool? SendReminderEmails { get; set; }
|
|
|
|
public int? FirstReminderDays { get; set; }
|
|
|
|
public int? ReminderIntervalDays { get; set; }
|
|
|
|
public int? EnvelopeTypeId { get; set; }
|
|
|
|
public int? CertificationType { get; set; }
|
|
|
|
public bool? UseAccessCode { get; set; }
|
|
|
|
public int? FinalEmailToCreator { get; set; }
|
|
|
|
public int? FinalEmailToReceivers { get; set; }
|
|
|
|
public int? ExpiresWhenDays { get; set; }
|
|
|
|
public int? ExpiresWarningWhenDays { get; set; }
|
|
|
|
public bool TFAEnabled { get; init; }
|
|
|
|
public bool DmzMoved { get; set; }
|
|
public UserReadDto? User { get; set; }
|
|
public EnvelopeType? EnvelopeType { get; set; }
|
|
|
|
public string? EnvelopeTypeTitle { get; set; }
|
|
|
|
public bool IsAlreadySent { get; set; }
|
|
|
|
public string? StatusTranslated { get; set; }
|
|
|
|
public string? ContractTypeTranslated { get; set; }
|
|
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
|
|
}
|
|
} |