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.
21 lines
760 B
C#
21 lines
760 B
C#
using DigitalData.Core.Abstractions;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs
|
|
{
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public record ConfigDto(
|
|
string DocumentPath,
|
|
int SendingProfile,
|
|
string SignatureHost,
|
|
string ExternalProgramName,
|
|
string ExportPath) : IUnique<int>
|
|
{
|
|
[NotMapped]
|
|
[JsonIgnore]
|
|
[Obsolete("Configuration does not have an ID; it represents a single table in the database.")]
|
|
public int Id => throw new InvalidOperationException("This configuration does not support an ID as it represents a single row in the database.");
|
|
};
|
|
} |