• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERRest and versioning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest and versioning


  • Subject: ERRest and versioning
  • From: Pascal Robert <email@hidden>
  • Date: Sat, 8 Jan 2011 11:50:23 -0500

I will start building some REST services (bridge between clients and CalDAV/Exchange servers) and I was wondering about what to do with services versioning, AKA what to do when changes are required in the services that can impact older clients. I want to avoid doing such changes, but we all know that sometimes, it's a necessity. 

So, after doing a couple of Google search, it look like most people use one of those ways to work with versioning of REST services.

- Using a version number in the URLs (aka : /ra/v1/tasks)
- Using the Accept header and use a media type specific to the application (vnd.myapp.service-v1, vnd.myapp.service-v2)
- Using a custom HTTP header (X-MYAPP-VERSION: v1)

The last one (custom HTTP header) doesn't seem to be used by a lot of people, and for the other twos, it look like it's a culture wars, some says that putting API versions in the URL makes it look that it's a different resources, others says that using media types is a PITA for nothing.

Any opinions on this? Anyone tried to version their ERRest-backed services? 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ERRest and versioning
      • From: Farrukh Ijaz <email@hidden>
    • Re: ERRest and versioning
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: @sum for a group of displayGroups?
  • Next by Date: Re: ERRest and versioning
  • Previous by thread: Re: doubleNumber, newDoubleColumn
  • Next by thread: Re: ERRest and versioning
  • Index(es):
    • Date
    • Thread