Get 方法未在 Azure Api 管理开发人员门户中显示 <example> 文档
Get methods doesn't show <example> documentation in Azure Api Management developer portal
我有一个带有 Swashbuckle 5.5.1 的 API,并且 GET 方法在 Azure Api 管理开发人员门户中没有正确显示文档,但文档在 swagger 门户中正确显示。
example.This 代码仅在 Swagger 门户中显示文档:
/// <summary>
/// The total amount of the invoices.
/// </summary>
/// <example>10.59</example>
public decimal? Amount { get; set; }
/// <summary>
/// The status of the invoices.
/// </summary>
/// <example>1</example>
public AffiliateInvoiceStatusModel Status { get; set; }
/// <summary>
/// The invoice type of the invoices.
/// </summary>
/// <example>2</example>
public InvoiceTypeModel InvoiceType { get; set; }
在 Swagger 捕获文档
在 Azure Api 管理开发人员门户中捕获文档
有什么方法可以显示 GET 方法的文档吗?在开发人员门户中需要某种类型的配置,它似乎忽略了 swagger.json.
中的某些值
POST,正确显示 PUT 或 DELETE 方法文档。
目前不支持此功能,但我们正在努力改进 APIM OpenAPI 支持。
我有一个带有 Swashbuckle 5.5.1 的 API,并且 GET 方法在 Azure Api 管理开发人员门户中没有正确显示文档,但文档在 swagger 门户中正确显示。 example.This 代码仅在 Swagger 门户中显示文档:
/// <summary>
/// The total amount of the invoices.
/// </summary>
/// <example>10.59</example>
public decimal? Amount { get; set; }
/// <summary>
/// The status of the invoices.
/// </summary>
/// <example>1</example>
public AffiliateInvoiceStatusModel Status { get; set; }
/// <summary>
/// The invoice type of the invoices.
/// </summary>
/// <example>2</example>
public InvoiceTypeModel InvoiceType { get; set; }
在 Swagger 捕获文档
在 Azure Api 管理开发人员门户中捕获文档
有什么方法可以显示 GET 方法的文档吗?在开发人员门户中需要某种类型的配置,它似乎忽略了 swagger.json.
中的某些值POST,正确显示 PUT 或 DELETE 方法文档。
目前不支持此功能,但我们正在努力改进 APIM OpenAPI 支持。