Browse Source

Update `docs_src/path_operation_configuration/tutorial004_*`

pull/14753/head
Yurii Motov 6 months ago
parent
commit
61a25847f8
  1. 4
      docs_src/path_operation_configuration/tutorial004_py310.py
  2. 4
      docs_src/path_operation_configuration/tutorial004_py39.py

4
docs_src/path_operation_configuration/tutorial004_py310.py

@ -12,8 +12,8 @@ class Item(BaseModel):
tags: set[str] = set()
@app.post("/items/", response_model=Item, summary="Create an item")
async def create_item(item: Item):
@app.post("/items/", summary="Create an item")
async def create_item(item: Item) -> Item:
"""
Create an item with all the information:

4
docs_src/path_operation_configuration/tutorial004_py39.py

@ -14,8 +14,8 @@ class Item(BaseModel):
tags: set[str] = set()
@app.post("/items/", response_model=Item, summary="Create an item")
async def create_item(item: Item):
@app.post("/items/", summary="Create an item")
async def create_item(item: Item) -> Item:
"""
Create an item with all the information:

Loading…
Cancel
Save