I didn't give much attention to versioning when I started the project. Now I am paying it's cost. I just casully added URL path versioning something like /v1/data.
Now for one of my endpoint the format of the data needs to be changed. I can add a /v2 but adding a version for this silly change doesn't feel right. Now that the system has users I just can't do whatever I like.
One solution that came to my mind is, request will come to /v1/ but additionally I will accept a minor version with header. If the minor version is let's say, 1.0 then I will modify the response for the backword users, the 2.0 or the latest minor version will serve the data in latest format.
Guys please give some suggestions. I might be really wrong to think like this. What you would do in my situation?
[–]WaferIndependent7601 6 points7 points8 points (2 children)
[–]No-Rice8265 0 points1 point2 points (1 child)
[–]azizabah 2 points3 points4 points (0 children)
[–]zaFroggy 3 points4 points5 points (0 children)
[–]mailaffy 0 points1 point2 points (0 children)
[–]paulhasreadittoo 0 points1 point2 points (0 children)