I can understand why you'd go that route, many do. For clarification,
rare. Versioning shouldn't be necessary very often. If you're Facebook
On Feb 29, 10:49 am, Jean Ducrot <
tor...@gmail.com> wrote:
> Thanks Doug. I agree that passing the api version in the query string of
> the URI is technically more "RESTful". However it's important to remember
> that Fielding wrote his paper 12 years ago and the state of the web today
> is very different. After doing much digging on the topic of URI versioning
> we decided to adopt the pragmatic approach presented by api business
> veteran Apigee (
http://blog.apigee.com/detail/restful_api_design_tips_for_versioning/).
> This was mainly to avoid what happened to Facebook when they
> were passing their version as an optional query string parameter and
> several API consuming clients broke upon upgrade to v2.
>
> As far as designing a versioned API on top of MACH II, would it be worth
> creating a module for our API or each version of it? Beyond keeping things
> cleaner architecturally, what other benefits could we reap going that way?
> Do you know the impact it would have on memory?
>
> Thanks again for sharing your insight on the topic.
>
> Jean
>
>
>
>
>
>
>
> On Tuesday, February 28, 2012 3:20:36 PM UTC-5, Doug wrote:
>
> > This is a good question. We subscribe to an arguably more "RESTful"
> > practice of not versioning in the URI. Instead, ask for a version in
> > the Accept header, and return the version in the Content-Type header.
> > Clients who don't request a certain version get the latest.
>
> > There's a good discussion of pros/cons here: