문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # body - https://fastapi.tiangolo.com/tutorial/body-multiple-params/#embed-a-single-body-parameter ### embed ```python @app.put("/items/{item_id}") async def update_item(*, item_id: int, item: Item = Body(..., embed=True)): results = {"item_id": item_id, "item": item} return results ``` ```python { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } } ``` embed=False ```python { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } ``` open/fastapi-body.txt 마지막으로 수정됨: 2020/06/02 09:25저자 127.0.0.1