[LRUG] Encapsulation/Responsibility delegation and API versioning.

Damian Janowski jano at dimaion.com
Tue Aug 23 07:56:07 PDT 2011


On Mon, Aug 22, 2011 at 12:16 PM, Ian Leitch <port001 at gmail.com> wrote:
> Hey list,
>
> I'm working on a Rails API that's the backend for an iPhone app. Given
> that I'll have no control over when a user maybe choose to up upgrade
> to the latest version of the app, I'm taking steps to ensure that each
> of my API versions are very much self-contained. When I need to bump
> the version, i'll simply duplicate the controllers.

Not that I actually tried this, but why not keeping your versions as
Git branches?

/v1 runs branch v1, /v2 runs branch v2.

If bugs are found, you can fix them on v2 and backport if necessary to
v1. Similar to any other software project.

Makes sense?



More information about the Chat mailing list