Search code examples
.net-coreswagger-uiswashbuckle.aspnetcore

Add copy button to swagger in .Net Core 6 web API


I built a REST API with .net core 6 and added swagger UI to it. When I run the API, I don't see the copy-to-clipboard button when I hover over the routes. How do I add it?

These are my installed packages:

enter image description here


Solution

  • For some reason, the copy button not showing on 6.5.0 version of Swashbuckle.AspNetCore. I downgraded it to 6.4.0 and now the icon is there.