Debian Codegraph @

docs_src/body_nested_models/tutorial009_py310.py

raw
1 from fastapi import FastAPI
2
3 app = FastAPI()
4
5
6 @app.post("/index-weights/")
7 async def create_index_weights(weights: dict[int, float]):
8 return weights