- Sort Score
- Result 10 results
- Languages All
Results 641 - 650 of 834 for ITEM (0.03 sec)
-
docs/de/docs/advanced/additional-responses.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/em/docs/tutorial/body.md
{!> ../../docs_src/body/tutorial001_py310.py!} ``` //// ...& ๐ฃ ๐ฎ ๐ ๐ท ๐ โ, `Item`. ## ๐ โฎ๏ธ ๐ ๐ ๐ ๐, **FastAPI** ๐: * โ ๐ช ๐จ ๐ป. * ๐ ๐ ๐ (๐ฅ ๐ช). * โ ๐ฝ. * ๐ฅ ๐ฝ โ, โซ๏ธ ๐ ๐จ ๐ & ๐ โ, โ ๏ธ โซ๏ธโ ๐โ & โซ๏ธโ โ ๐. * ๐ค ๐ ๐จ ๐ ๐ข `item`. * ๐ ๐ฃ โซ๏ธ ๐ข ๐ `Item`, ๐ ๐ โ๏ธ ๐ ๐จโ๐จ ๐โ๐ฆบ (๐ ๏ธ, โ๏ธ) ๐ ๐ข & ๐ซ ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:07:07 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
``` //// ## Alias parameters Imagine that you want the parameter to be `item-query`. Like in: ``` http://127.0.0.1:8000/items/?item-query=foobaritems ``` But `item-query` is not a valid Python variable name. The closest would be `item_query`. But you still need it to be exactly `item-query`...
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 25.4K bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial006_an_py39.py
from typing import Annotated from fastapi import FastAPI, Path, Query app = FastAPI() @app.get("/items/{item_id}") async def read_items( *, item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)], q: str, size: Annotated[float, Query(gt=0, lt=10.5)], ): results = {"item_id": item_id} if q: results.update({"q": q}) if size: results.update({"size": size})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Aug 28 23:39:15 UTC 2024 - 447 bytes - Viewed (0) -
common-protos/k8s.io/api/networking/v1/generated.proto
message NetworkPolicyEgressRule { // ports is a list of destination ports for outgoing traffic. // Each item in this list is combined using a logical OR. If this field is // empty or missing, this rule matches all ports (traffic not restricted by port). // If this field is present and contains at least one item, then this rule allows // traffic only if the traffic matches at least one port in the list. // +optional
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 25.2K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ Union[str, None], Query( alias="item-query", title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, max_length=50,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 635 bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
``` /// note | "์ฐธ๊ณ " `response_model`์ "๋ฐ์ฝ๋ ์ดํฐ" ๋ฉ์๋(`get`, `post`, ๋ฑ)์ ๋งค๊ฐ๋ณ์์ ๋๋ค. ๋ชจ๋ ๋งค๊ฐ๋ณ์๋ค๊ณผ ๋ณธ๋ฌธ(body)์ฒ๋ผ *๊ฒฝ๋ก ์๋ ํจ์*๊ฐ ์๋๋๋ค. /// Pydantic ๋ชจ๋ธ ์ดํธ๋ฆฌ๋ทฐํธ๋ฅผ ์ ์ธํ ๊ฒ๊ณผ ๋์ผํ ํ์ ์ ์์ ํ๋ฏ๋ก Pydantic ๋ชจ๋ธ์ด ๋ ์ ์์ง๋ง, `List[Item]`๊ณผ ๊ฐ์ด Pydantic ๋ชจ๋ธ๋ค์ `list`์ผ ์๋ ์์ต๋๋ค. FastAPI๋ ์ด `response_model`๋ฅผ ์ฌ์ฉํ์ฌ: * ์ถ๋ ฅ ๋ฐ์ดํฐ๋ฅผ ํ์ ์ ์ธ์ผ๋ก ๋ณํ. * ๋ฐ์ดํฐ ๊ฒ์ฆ. * OpenAPI *๊ฒฝ๋ก ์๋*์ ์๋ต์ JSON ์คํค๋ง ์ถ๊ฐ. * ์๋ ์์ฑ ๋ฌธ์ ์์คํ ์ ์ฌ์ฉ. ํ์ง๋ง ๊ฐ์ฅ ์ค์ํ ๊ฒ์:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
fastapi/routing.py
from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None app = FastAPI() router = APIRouter() @router.put("/items/{item_id}") def replace_item(item_id: str, item: Item): return {"message": "Item replaced", "id": item_id} app.include_router(router)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008b.py
client = TestClient(app) def test_get_no_item(): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found"} def test_owner_error(): response = client.get("/items/plumbus") assert response.status_code == 400, response.text assert response.json() == {"detail": "Owner error: Rick"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 697 bytes - Viewed (0)