Skip to content

Instantly share code, notes, and snippets.

@aramkoukia
Created April 14, 2018 19:55
Show Gist options
  • Save aramkoukia/3b4d7405781765c661993b3a07e5cf80 to your computer and use it in GitHub Desktop.
Save aramkoukia/3b4d7405781765c661993b3a07e5cf80 to your computer and use it in GitHub Desktop.
Specifying different versions
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