Added more security and metrics
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using EonaCat.Json;
|
||||
|
||||
namespace EonaCat.DoxaApi.Models
|
||||
{
|
||||
@@ -7,24 +7,24 @@ namespace EonaCat.DoxaApi.Models
|
||||
|
||||
public sealed class ApiDocument
|
||||
{
|
||||
[JsonPropertyName("info")]
|
||||
[JsonProperty("info")]
|
||||
public ApiInfo Info { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("servers")]
|
||||
[JsonProperty("servers")]
|
||||
public List<string> Servers { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("groups")]
|
||||
[JsonProperty("groups")]
|
||||
public List<ApiGroup> Groups { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("schemas")]
|
||||
[JsonProperty("schemas")]
|
||||
public Dictionary<string, SchemaModel> Schemas { get; set; } = new();
|
||||
|
||||
/// <summary>All security schemes available for this API (keyed by scheme id).</summary>
|
||||
[JsonPropertyName("securitySchemes")]
|
||||
[JsonProperty("securitySchemes")]
|
||||
public Dictionary<string, SecuritySchemeModel> SecuritySchemes { get; set; } = new();
|
||||
|
||||
/// <summary>Which optional DoxaApi server-side features are enabled, for UI feature detection.</summary>
|
||||
[JsonPropertyName("features")]
|
||||
[JsonProperty("features")]
|
||||
public ApiFeatureFlags Features { get; set; } = new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user