I am just about to go live with an api that I wrote using the new webapi.
I want to futureproof via some kind of versioning for the api - meaning if a client starts using the api straight after release I don't want them to have to go back and update their code with any changes I may make.
I can think of a couple of ways of applying a versions.
- //myapi.com/foo?bar=1234&v1
- //myapi.com/v1/foo?bar=1234
What are most people doing? I want to follow best practises but I also want the api to be clean to manage.
Suggestions are most welcome :)