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)

\$\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.

\$\endgroup\$
2
  • \$\begingroup\$ Ok so I should remove not used endpoint versions... \$\endgroup\$
    – Matley
    Feb 18 at 15:59
  • \$\begingroup\$ According to EOL yes. \$\endgroup\$
    – Grim
    Feb 18 at 16:04

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.