Initial version
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user