@app.post("/item") async def get_item(item: Item): return item. 這樣寫也能返回JSON 數據,是因為FastAPI 是自動幫忙做了轉換的. 等價寫法.
確定! 回上一頁