mirror of
https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
synced 2025-12-20 08:15:48 +08:00
添加项目文件。
This commit is contained in:
18
test/Basic/Swagger/AddCartsByIdGetExternalDocs.cs
Normal file
18
test/Basic/Swagger/AddCartsByIdGetExternalDocs.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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")
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user