0
hkcf created
If i want to use request header for versioning, how to do that by using aspnetboilerplate ?
Thanks!
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
You can define an interface on your Core module like IApiVersionRetreiver which contains a method GetApiVersion(). Iimplement it on Web project and get api version from Request Header. In application service, just inject IApiVersionRetreiver and use it's GetApiVersion method.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)