What is the best practice for introducing v2 of a RESTful API with unchanged endpoints?

Refresh

2 weeks ago

Views

7 time

0

In case I have a breaking change with one endpoint only and I need to introduce /v2/... of this endpoint. Should I keep the prefix /v1/ for all other unchanged endpoints ?

Let's say that the current endpoints are:

/v1/endpoint1
/v1/endpoint2
/v1/endpoint3
/v1/endpoint3

I need to make a breaking change on /v1/endpoint1. So I am going to introduce /v2/endpoint1.

0 answers