|
|
|
@ -14,9 +14,8 @@ class Item(BaseModel): |
|
|
|
|
|
|
|
@app.post( |
|
|
|
"/items/", |
|
|
|
response_model=Item, |
|
|
|
summary="Create an item", |
|
|
|
description="Create an item with all the information, name, description, price, tax and a set of unique tags", |
|
|
|
) |
|
|
|
async def create_item(item: Item): |
|
|
|
async def create_item(item: Item) -> Item: |
|
|
|
return item |
|
|
|
|