I have problem when run swagger with this methods. Can you help me?
[HttpPost]
[ApiVersion("1.0")]
public IActionResult SetEmployeeV1()
{
v1 ...
}
[HttpPost]
[ApiVersion("2.0")]
public IActionResult SetEmployeeV2()
{
v2 ...
}
I create 2 controllers to represent different versions.
This is version one.
This is version 2:
Now I can call them successfully in a browser, but I can't let the api displayed in swagger. So I need to modify Program.cs(Startup.cs in .net 5)