SDammann.WebApi.Versioning
SDammann.WebApi.Versioning copied to clipboard
2 questions for the AcceptHeaderVersionedControllerSelector
I use AcceptHeaderVersionedControllerSelector system.
I would a default version if a client don't send accept header ?
Is it possible the use a major.minor pattern with AcceptHeaderVersionedControllerSelector or is only possible with Major digit.
Thanks
For now only major versions are supported but pull requests are welcome.
Be careful of using a default version. The whole point of versioning is that you should be forcing your clients to describe which version(s) of the protocol they support, so you know how to communicate with them. If you want to change the default version or remove support for the old, original default version in the future, all your lazy clients that haven't been specifying version are now broken.
I agree, versioning should be explicit.