jasonkilgrow
6 years agoNew Contributor
What is the best way to version paths?
I know there is a version enumeration in the servers block, but that is for endpoint generation in the rendered swagger document. I'm looking for a way to manage the paths when I have changes to the paths. I want to be able to say that the new path has a new version (/v2/users/{id}) while still maintaining the old version (/v1/users/{id}) without having to name the path with "/v1" and "/v2" in the path. If I have to do that, I would probably not maintain both paths in the same yaml file. I would probably just have a different version of the yaml.
What are some techniques that people are using to manage their API versions?
Thanks!