DeanWay / fastapi-versioning

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

Add urls with versioning #60

Open tommy04062019 opened 2 years ago

tommy04062019 commented 2 years ago

Is your feature request related to a problem? Please describe. Without versioning:

app = FastAPI(title=TITLE,
              servers=[
                  {"url": "http://localhost:8081", "description": "Dev environment"},
                  {"url": "https://prod.example.com", "description": "Production environment"},
              ],
              description=DESCRIPTION,
              version=VERSION,
              contact=CONTACTS,
              license_info=LICENSE

              )

Describe the solution you'd like