Rest api versioning | api versioning | api versioning demo | api versioning code example | okayjava

preview_player
Показать описание
rest api versioning | api versioning | api versioning demo | api versioning code example | okayjava

01 - What is api versioning?
02 - Breaking v/s Non breaking api changes
03 - Types of API Versioning
04 - Live code…

URI VERSIONING :
This strategy involves putting the version number in the path of the URI, and is often done with the prefix "v".

REQUEST PARAMS :
This type of versioning adds a query param to the request that indicates the version.

VERSIONING USING CUSTOM REQUEST HEADER :
A custom header allows us to preserve api URLs. Version information is specified in the Request Header without the need for any change in the URL.
headers=[X-API-VERSION=1]

VERSIONING USING ACCEPT HEADER :
Accept header define the media type and character encodings. We can also pass version information for Web API through accept headers without changing the URL. It is also known as media type versioning or content negotiation or accept header.
i.e.

PLEASE SUBSCRIBE FOR MORE VIDOES :)
Рекомендации по теме
Комментарии
Автор

very nice video presentation, clearly mentioned all the types with coding

gauravarya
Автор

Nice explains concept with example example 👏

tejabtitare
Автор

Your video is very good.
One question: if a new version is made, should the old one be removed?

gerogsg
Автор

If we dont provide accept header, how it should pick highest version of API by default.
Could you please explain that

ayansarkar
Автор

which versioning Technique mostly used in industry ?

palashbawankar
welcome to shbcf.ru