38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace EonaCat.DoxaApi.Models
|
|
{
|
|
public sealed class ApiEndpoint
|
|
{
|
|
[JsonPropertyName("operationId")]
|
|
public string OperationId { get; set; } = "";
|
|
|
|
[JsonPropertyName("summary")]
|
|
public string? Summary { get; set; }
|
|
|
|
[JsonPropertyName("description")]
|
|
public string? Description { get; set; }
|
|
|
|
[JsonPropertyName("method")]
|
|
public string Method { get; set; } = "GET";
|
|
|
|
[JsonPropertyName("path")]
|
|
public string Path { get; set; } = "/";
|
|
|
|
[JsonPropertyName("deprecated")]
|
|
public bool Deprecated { get; set; }
|
|
|
|
[JsonPropertyName("tags")]
|
|
public List<string> Tags { get; set; } = new();
|
|
|
|
[JsonPropertyName("parameters")]
|
|
public List<ApiParameter> Parameters { get; set; } = new();
|
|
|
|
[JsonPropertyName("requestBody")]
|
|
public RequestBodyModel? RequestBody { get; set; }
|
|
|
|
[JsonPropertyName("responses")]
|
|
public List<ResponseModel> Responses { get; set; } = new();
|
|
}
|
|
}
|