Page 1 of 1

API Express - Versioning (in URL or header)

Posted: Thu Aug 20, 2015 10:28 am
by M&M

hi,

What would be the preferred way of versioning the REST APIs? Do we pass it in the URL or is it better to pass it in the headers?

I did not see any information related to versioning and from the below image that I have attached,

I guess the circled number is the API version. Am I correct? Is there any recommended approach on version of APIs? Some people prefer to use the version in url and other prefer to use version in the header. Kindly advise Image


API Express - Versioning (in URL or header)

Posted: Mon Aug 24, 2015 7:58 am
by Serhii Kulibaba

Hello,

You are right, this is version of API. You can use it in the URL.