Hand-coding REST versioning
Hand-coding versioning is the alternative to using the advanced REST API versioning. You must hand-code for each REST operation.
There are two options for hand-coding versioning.
- Set the
WSPath
attribute to specify the version in the URI. See Versioning with URI. - Add a custom HTTP header, such as "
api-version
", with the version. See Versioning with custom header.