- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 1,721 for item (0.03 sec)
-
docs_src/query_params/tutorial006.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 301 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial005_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item = Body(embed=True)): results = {"item_id": item_id, "item": item}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 369 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: list[str] = [] @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item): results = {"item_id": item_id, "item": item}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 369 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial003_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item): results = {"item_id": item_id, "item": item}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 371 bytes - Viewed (0) -
tests/test_validate_response_recursive/test_validate_response_recursive_pv1.py
response = client.get("/items/recursive") assert response.status_code == 200, response.text assert response.json() == { "sub_items": [{"name": "subitem", "sub_items": []}], "name": "item", } response = client.get("/items/recursive-submodel") assert response.status_code == 200, response.text assert response.json() == { "name": "item", "sub_items1": [ {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 900 bytes - Viewed (0) -
docs_src/response_model/tutorial004.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 633 bytes - Viewed (0) -
docs/em/docs/tutorial/body-multiple-params.md
/// ## โฏ ๐ ๐ช ๐ข โก๏ธ ๐ฌ ๐ ๐ด โ๏ธ ๐ `item` ๐ช ๐ข โช๏ธโก๏ธ Pydantic ๐ท `Item`. ๐ข, **FastAPI** ๐ โคด๏ธ โ ๐ฎ ๐ช ๐. โ๏ธ ๐ฅ ๐ ๐ โซ๏ธ โ ๐ป โฎ๏ธ ๐ `item` & ๐ โซ๏ธ ๐ท ๐, โซ๏ธ ๐จ ๐โ ๐ ๐ฃ โ ๐ช ๐ข, ๐ ๐ช โ๏ธ ๐ `Body` ๐ข `embed`: ```Python item: Item = Body(embed=True) ``` : //// tab | ๐ 3๏ธโฃ.6๏ธโฃ & ๐ ```Python hl_lines="17"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs_src/query_params/tutorial003_py310.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/{item_id}") async def read_item(item_id: str, q: str | None = None, short: bool = False): item = {"item_id": item_id} if q: item.update({"q": q}) if not short: item.update( {"description": "This is an amazing item that has a long description"} )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 374 bytes - Viewed (0) -
api/maven-api-settings/src/site/site.xml
<edit>${project.scm.url}</edit> <body> <menu name="Overview"> <item name="Introduction" href="index.html"/> <item name="Javadocs" href="apidocs/index.html"/> <item name="Source Xref" href="xref/index.html"/> <!--item name="FAQ" href="faq.html"/--> </menu> <menu ref="parent"/> <menu ref="reports"/> </body>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Sat Dec 31 16:32:07 UTC 2022 - 1.4K bytes - Viewed (0) -
api/maven-api-metadata/src/site/site.xml
<edit>${project.scm.url}</edit> <body> <menu name="Overview"> <item name="Introduction" href="index.html"/> <item name="Javadocs" href="apidocs/index.html"/> <item name="Source Xref" href="xref/index.html"/> <!--item name="FAQ" href="faq.html"/--> </menu> <menu ref="parent"/> <menu ref="reports"/> </body>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Thu Apr 11 14:06:34 UTC 2024 - 1.4K bytes - Viewed (0)