Wednesday, 23 October 2024

add header to the web api globally

 builder.Services.AddSwaggerGen(c =>

{ c.OperationFilter<AddRegionCodeHeaderParameter>(); c.EnableAnnotations(); c.SwaggerDoc("v1", new OpenApiInfo { Title = "Patient Web API", Version = "v1" }); c.OperationFilter<AddRegionCodeHeaderParameter>(); });

No comments:

Post a Comment

calling or handling data without c# model

 calling or handling data without c# model Yes, it is possible to read data in a C# Web API without explicitly defining model classes for ev...