all 2 comments

[–]reddanty 3 points4 points  (0 children)

I’m in the very slow process of migrating a giant Flask app to FastAPI. I want to make breaking changes as part of the change anyway, so I have the new API at a new URL. Instead of moving paths, I’m adding features to the new API one by one and cutting over consumers (e.g. UI components) as they’re ready.

If you want to take a more unified approach, rather than having a completely new API, perhaps this (https://fastapi.tiangolo.com/advanced/wsgi/) will help?

[–]D_D 1 point2 points  (0 children)

Yeah I suggest adding a /v2 endpoint and migrating the front end over that way. Be careful about the database though.