namespace CoreAgent.Infrastructure.Options
{
public class ApiVersioningSettings
{
///
/// 默认 API 版本
///
public string DefaultVersion { get; set; } = "1.0";
///
/// 是否在响应头中显示版本信息
///
public bool ShowVersionInHeader { get; set; } = true;
///
/// 是否在响应中显示版本信息
///
public bool ShowVersionInResponse { get; set; } = true;
///
/// 是否在 URL 中显示版本信息
///
public bool ShowVersionInUrl { get; set; } = true;
///
/// 是否在查询字符串中显示版本信息
///
public bool ShowVersionInQueryString { get; set; } = true;
///
/// 是否在媒体类型中显示版本信息
///
public bool ShowVersionInMediaType { get; set; } = true;
///
/// 是否报告 API 版本
///
public bool ReportApiVersions { get; set; } = true;
///
/// 是否假设默认版本
///
public bool AssumeDefaultVersionWhenUnspecified { get; set; } = true;
}
}