I am building an API using FastAPI. That API is going to have some routes which are defined in my application, e.g. the API includes routes under /org/team1/... as well as perhaps routes under /foo/bar/....
I'd like to be able to have a subset of the overall API as a different app but to appear as a part of the main app. Thus some other team building part of the app might be responsible for routes under /org/team2/....
Is there some way of merging the OpenAPI spec from the team2 subset into the overall API spec, such that FastAPI has just a single OpenAPI spec? i.e. the top-level API is a sort of API Gateway pattern?
I would like to enable team2 to build and deploy their API separately to team1, but for all APIs to appear as a unified API.