DeanWay / fastapi-versioning

api versioning for fastapi web applications
MIT License
642 stars 63 forks source link

Change naming convention of api version in url #53

Closed dsouzadyn closed 2 years ago

dsouzadyn commented 3 years ago

Is your feature request related to a problem? Please describe. In the generated versioning v1_0, v1_2. The underscore is unintuitive when it comes to api versioning.

Describe the solution you'd like Change the underscore to a dot.

Describe alternatives you've considered None

Additional context None

ak4zh commented 2 years ago

VersionedFastAPI takes an argument prefix_format, the default is:

prefix_format: str = "/v{major}_{minor}"