0
\$\begingroup\$

I have 5 versions of some endpoint. Only V4 and V5 are used currently on the frontend side. What should I do with the V1, V2 and V3 versions? Should I remove them when are not used anywhere?

@PutMapping(consumes = "application/json", path = "/v1/announcement/{id:\\d+}")
@PutMapping(consumes = "application/json", path = "/v2/announcement/{id:\\d+}")
@PutMapping(consumes = "application/json", path = "/v3/announcement/{id:\\d+}")
@PutMapping(consumes = "application/json", path = "/v4/announcement/{id:\\d+}")
@PutMapping(consumes = "application/json", path = "/v5/announcement/{id:\\d+}")

The code is duplicated, almost the same for all versions (5 services)

asked Feb 18, 2024 at 11:51
\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Oracle use the Support-Roadmap, I think this is a good concept.

(https://www.oracle.com/java/technologies/java-se-support-roadmap.html)

If the version 1-3 is officially declared as end-of-life (EOL) you shoud/must remove them.

answered Feb 18, 2024 at 12:17
\$\endgroup\$
2
  • \$\begingroup\$ Ok so I should remove not used endpoint versions... \$\endgroup\$ Commented Feb 18, 2024 at 15:59
  • \$\begingroup\$ According to EOL yes. \$\endgroup\$ Commented Feb 18, 2024 at 16:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.