Here is my problem and first question I struggle to find an answer to:
- I have an API based on a specific standard
- One of the endpoints looks like this: POST/ petstore.swagger.io/v2/pet
- Clients expect this URL to be in this exact format and use have /v2/, since version number in URL reflects implemented standard
- I have a bug in this API, and fixing it would mean introducing a breaking change. Clients application will stop working if the change is made
- If I introduce a breaking change, I must allow both versions (with and without a bug fix) to run in parallel, to let clients to comfortably adapt
So far, I couldn't come with anything better then introducing a minor version to URL. But this on its own is a deviation from the standard and a breaking change.
How to version APIs which follow a standard, but deviated from it? While that standard requires a specific version numbers to be used in URLs?
Thank you