Web Api How to add a Header parameter for all API in Swagger
What the user “G T” wrote is correct but it is not working with Swagger 5. We have some new changes: From: Operation to: OpenApiOperation From: IParameter to: OpenApiParameter From: NonBodyParameter to: OpenApiParameter, and the most important is… From: Type = “string” to: Schema = new OpenApiSchema { Type = “String” } using System.Collections.Generic; using … Read more