I am new to swagger, I have seen couple of online documentation to implement Swagger to my webapi and used some of the properties of SwaggerConfig to customize.
Here is my requirement :- I need to show swagger documentation only on "Explore" button click based on the value of "API_Key" TextBox which should match with my app.config key.

So I am seeing to implement like this:-
Need suggestions.
Kind Regards, Raghu
Simply edit the index.html and add the headers you need on the addApiKeyAuthorization change event. See more here:
https://github.com/swagger-api/swagger-ui#header-parameters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With