M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

API Express - Versioning (in URL or header)

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

API Express - Versioning (in URL or header)

Hello,

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

Return to “Issues”