Spring Boot REST API and versioning

preview_player
Показать описание
Enjoy! :-)
Thank you for commenting and asking questions.

Library sign up referral link:

Checkout or buy the Introduction to Algorithms book at Amazon:

The code is located here:
Follow me on twitter:
Support me on Patreon:

As an Amazon Associate I earn from qualifying purchases.
Check out the stuff that I like (always updated):
Рекомендации по теме
Комментарии
Автор

Nice post on versioning api..its really very helpful

kripashankarkanaujiya
Автор

6:20 I would rather name "TrainRestController" the version 2 and rename "TrainV1RestController" the version 1: this way there will be no refactoring needed when we need to discontinue and delete version 1. Another solution, maybe even better than renaming the classes, would be to move the version 1 files into a version1 subpackage.

krige
Автор

Hi Mike,

Sometimes we have a breaking changes new fileds that are mantadory.
This solution have actualy a lot of cons, like maintenance and source code maintaining in git repos, should I maintain to diffrents branches?
Another problem is what if those endpoints have differnet port like 8080 and 8081 how to servce them with proxy or LB, any other solution please?
Regards

fullnaoufal
welcome to shbcf.ru