Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Random thought, but would it make sense to give each client a unique base path for URL endpoints and let them instantiate new endpoints with different versions?

Ex:

    mysite.com/api/UUID_for_api_v1/cars/1
and

    mysite.com/api/UUID_for_api_v2/automobiles/1


I was just thinking about this. Instead of versioning with an `Accept` header, or with a URL version, why not version off of an upgradable API key?


Facebook does this partly: Each “Application” has an associated API version which is the earliest API version that can be accessed (and IIRC the one used implicitly when no version is given inside the route).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: