Which of the following is the correct syntax to define a PUT route in FastAPI for updating an item with an ID?
A@app.post('/items/{item_id}')
async def update_item(item_id: int, item: Item):
return item
B@app.get('/items/{item_id}')
async def update_item(item_id: int, item: Item):
return item
C@app.delete('/items/{item_id}')
async def update_item(item_id: int, item: Item):
return item
D@app.put('/items/{item_id}')
async def update_item(item_id: int, item: Item):
return item