The text of this article is not in this database — only its details are. Read it on the old site: Demystify Web API Versioning
21 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Demystify Web API Versioning
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Wasim HajwanePosted Nov 21, 2016, 6:32 AM
Thank you..but i didnt find any source code.When i was extracting the.rar file at that time i only get packages folder nothing else
Sachin KaliaPosted May 23, 2016, 4:37 AM
If you are pointing to same controller's but different action so again you have to specify the path for both of these to keep isolate in nature..
Sachin KaliaPosted May 23, 2016, 4:36 AM
As far as i can see in the code above you have same set of routing for both of the route except action method name in one..so routing engine may conflict which controller should i call..Try one thing give some default value for both of these controller and set V1 and V2 to distinguish between them.
Julian CorreaPosted May 20, 2016, 5:03 PM
One doubt: it's necessary create mapped route for every Controller? The controller in defaults object it's only used if nothing is informed, right? I'm having a routing problem. config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/v1/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); config.Routes.MapHttpRoute( name: "ApiDefaultVersion1000", routeTemplate: "api/v1/{controller}/{action}/{id}", defaults: new {action = RouteParameter.Optional, id = RouteParameter.Optional } ); The URL http://localhost:51123/api/v1/chat/messages it's not matching, returns 404.
Julian CorreaPosted May 20, 2016, 5:00 PM
Sanchin, great article!
Rahul Kumar SaxenaPosted Apr 4, 2016, 8:09 AM
Congrats Article Of The Day
Vignesh ManiPosted Mar 30, 2016, 5:25 AM
nice one
Atul RawatPosted Dec 22, 2015, 6:14 AM
sir getting problem if i have two Version (V1_8, and V1_9) and both controller are same name in this case controllerDescriptor return null
Vaikesh K PPosted Aug 25, 2015, 1:52 AM
Nice
Yashwanth MuthineniPosted Aug 24, 2015, 7:04 AM
Nice Share
Karthikeyan KPosted Aug 23, 2015, 11:23 PM
Thanks for share sir...
Gopi ChandPosted Aug 23, 2015, 1:58 PM
Nice explanation
Gowtham KPosted Aug 23, 2015, 1:31 PM
Good one, thanks for sharing
Santhakumar MunuswamyPosted Aug 23, 2015, 11:33 AM
Thanks for Nice article
Mohammed IbrahimPosted Aug 23, 2015, 9:44 AM
nice
Sachin KaliaPosted Aug 23, 2015, 8:08 AM
Mahesh ChandThanks sir spending your valuable time and appriciate work...Yes it is one of the demanding point which may utilize in better manner.
Mahesh ChandPosted Aug 23, 2015, 8:02 AM
Great topic, Sachin. I noticed many developers do not focus on versioning mostly in apps where Web API is serving.
Sibeesh VenuPosted Aug 23, 2015, 3:46 AM
Nice Share
RakeshPosted Aug 23, 2015, 3:30 AM
Good work
Rajeesh MenothPosted Aug 23, 2015, 2:39 AM
Good One