Created
April 14, 2018 19:55
-
-
Save aramkoukia/3b4d7405781765c661993b3a07e5cf80 to your computer and use it in GitHub Desktop.
Specifying different versions
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
namespace Product.CommandService.Controllers.Product.V1 | |
{ | |
[ApiVersion("1.0")] | |
[Produces("application/json")] | |
[Route("api/Product")] | |
public class ProductController : Controller | |
{ | |
} | |
} | |
namespace Product.CommandService.Controllers.Product.V2 | |
{ | |
[ApiVersion("2.0")] | |
[Produces("application/json")] | |
[Route("api/Product")] | |
public class ProductController : Controller | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment