mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 17:50:39 -05:00
* 🏗️ Implement unique IDs for dynamic models like those used for composite bodies and responses. IDs based on path (not only on function name, as it can be duplicated in a different module). * ✅ Add tests for same function name and composite body * ✅ Update OpenAPI in tests with new dynamic model ID generation
9 lines
150 B
Python
9 lines
150 B
Python
from fastapi import FastAPI
|
|
|
|
from . import a, b
|
|
|
|
app = FastAPI()
|
|
|
|
app.include_router(a.router, prefix="/a")
|
|
app.include_router(b.router, prefix="/b")
|