mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-04-15 11:52:50 +08:00
19 lines
524 B
C#
19 lines
524 B
C#
using System;
|
|
using Microsoft.OpenApi.Models;
|
|
using Swashbuckle.AspNetCore.SwaggerGen;
|
|
|
|
namespace Basic.Swagger
|
|
{
|
|
public class AddCartsByIdGetExternalDocs : IOperationFilter
|
|
{
|
|
public void Apply(OpenApiOperation operation, OperationFilterContext context)
|
|
{
|
|
operation.ExternalDocs = new OpenApiExternalDocs
|
|
{
|
|
Description = "External docs for CartsByIdGet",
|
|
Url = new Uri("https://tempuri.org/carts-by-id-get")
|
|
};
|
|
}
|
|
}
|
|
}
|