Open vagosduke opened 1 year ago
Hi, @vagosduke sadly this repo was abandoned a long time ago, you can look at all the opened issues. But thanks to @alexs there is a fork that contains fixes and improvements.
You can read more here: https://github.com/DeanWay/fastapi-versioning/issues/65#issuecomment-1363796400
Hope it helps
Is your feature request related to a problem? Please describe. Once defined, all paths are added to the api version they are linked with, and all the following versions after that. It would be beneficial to be able to deprecate paths
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A
deprecate_in=
option in the@version
decorator could cause certain viewfunctions to stop being added to the API paths after a certain version.An example would be the following
This would result in the following endpoints:
(Now, the normal behaviour without
deprecate_in
is that in v3, both the/v3/new-greet
and/v3/greet
paths would be available)I have implemented the solution, but I cannot push it. Can I be given access?