API Versioning Best Practice

59 views
Skip to first unread message

Phillip Duba

unread,
May 28, 2013, 9:20:40 AM5/28/13
to taffy...@googlegroups.com
So when you put in the API version, do you put the index.cfm and Application.cfc in the, let's say, v1 folder, or one level up, like in the myapi folder if the URI were /myapi/v1/resources? Thanks,

Phil

Adam Tuttle

unread,
May 28, 2013, 9:24:36 AM5/28/13
to taffy...@googlegroups.com
I typically put index.cfm & app.cfc inside the version folder.

Also just throwing this out there: feel free to use "natural" versions as well. For example, we do a lot of yearly events, so we've started doing "api/v2013/index.cfm/foo"

Adam

Adam


On Tue, May 28, 2013 at 9:20 AM, Phillip Duba <phil...@gmail.com> wrote:
So when you put in the API version, do you put the index.cfm and Application.cfc in the, let's say, v1 folder, or one level up, like in the myapi folder if the URI were /myapi/v1/resources? Thanks,

Phil

--
You received this message because you are subscribed to the Google Groups "Taffy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taffy-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Phillip Duba

unread,
May 28, 2013, 9:34:43 AM5/28/13
to taffy...@googlegroups.com
Yeah, definitely could see using that in practice. In my instance, it would definitely be a v1, v2, etc., although I really don't think it'll go past v1 since the web app we're building the API for hasn't changed in years,

Phil

--
You received this message because you are subscribed to a topic in the Google Groups "Taffy Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/taffy-users/8c6kVPuLkkM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to taffy-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages