Created
June 4, 2020 16:25
-
-
Save gavilanch/b62ce56640dfb1d313b723d2a43bdc22 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Versión 1 | |
namespace WebApiSwaggerVersion.Controllers.V1 | |
{ | |
[ApiController] | |
[Route("api/v1/[controller]")] | |
public class WeatherForecastController : ControllerBase | |
{...} | |
} | |
// Versión 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