Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Version 1
namespace WebApiSwaggerVersion.Controllers.V1
{
[ApiController]
[Route("api/v1/[controller]")]
public class WeatherForecastController : ControllerBase
{...}
}
// Version 2
namespace WebApiSwaggerVersion.Controllers.V2
{
[ApiController]
[Route("api/v2/[controller]")]
public class WeatherForecastController : ControllerBase
{...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.