DEV Community

Discussion on: Versioning ASP.Net Core APIs with Swashbuckle - Making Space Potatoes V-x.x.x

Collapse
 
zxswordxz profile image
zxswordxz

I speak too soon, I'm having a problem calling the different versions. How do I decorate my controller to make them unique? I have something like the below but that throw an endpoints.MapControllers() error.

namespace API.Controllers.v1
{
[Route("api/v1/[controller]")]