D
D
Dominik092020-02-11 17:08:33
Java
Dominik09, 2020-02-11 17:08:33

What is the advantage of specifying the version in Rest Controller (Java Spring)?

I am studying the technology of creating Rest API using Spring Boot. Many developers recommend putting a version number on each controller (Example - RestControllerV1). This rule in the existence of version control systems is confusing.
Why is this good manners and what benefits does it provide? Customers are constantly changing requirements, so there must be multiple versions of the same controller?
I would be very grateful if you share your practical experience.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-02-11
@Dominik09

Advantage of backward compatibility with client applications. Upgrading your service won't break everything for users who haven't upgraded yet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question