- Sort Score
- Result 10 results
- Languages All
Results 611 - 620 of 834 for ITEM (0.1 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial008c.py
return client def test_get_no_item(client: TestClient): response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(client: TestClient): response = client.get("/items/plumbus") assert response.status_code == 200, response.text assert response.json() == "plumbus"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/em/docs/tutorial/body-updates.md
✋️ 👉 🦮 🎦 👆, 🌖 ⚖️ 🌘, ❔ 👫 🎯 ⚙️. /// ### ⚙️ Pydantic `exclude_unset` 🔢 🚥 👆 💚 📨 🍕 ℹ, ⚫️ 📶 ⚠ ⚙️ 🔢 `exclude_unset` Pydantic 🏷 `.dict()`. 💖 `item.dict(exclude_unset=True)`. 👈 🔜 🏗 `dict` ⏮️ 🕴 💽 👈 ⚒ 🕐❔ 🏗 `item` 🏷, 🚫 🔢 💲. ⤴️ 👆 💪 ⚙️ 👉 🏗 `dict` ⏮️ 🕴 💽 👈 ⚒ (📨 📨), 🚫 🔢 💲: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="34" {!> ../../docs_src/body_updates/tutorial002.py!}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-updates.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/models.py
class User(peewee.Model): email = peewee.CharField(unique=True, index=True) hashed_password = peewee.CharField() is_active = peewee.BooleanField(default=True) class Meta: database = db class Item(peewee.Model): title = peewee.CharField(index=True) description = peewee.CharField(index=True) owner = peewee.ForeignKeyField(User, backref="items") class Meta:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 465 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_py310.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: str | None = Query( default=None, 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, pattern="^fixedquery$", deprecated=True, ), ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 542 bytes - Viewed (0) -
docs_src/path_params_numeric_validations/tutorial006_an.py
from fastapi import FastAPI, Path, Query from typing_extensions import Annotated 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:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Aug 28 23:39:15 UTC 2024 - 457 bytes - Viewed (0) -
cmd/data-scanner_test.go
VersioningConfigUpdatedAt: now, LifecycleConfigUpdatedAt: now, lifecycleConfig: &lc, versioningConfig: &vcfg, } globalBucketMetadataSys.Set(bucket, meta) item := scannerItem{ Path: obj, bucket: bucket, prefix: "", objectName: obj, lifeCycle: &lc, } modTime := time.Now() uuids := make([]uuid.UUID, 5) for i := range uuids {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 03 11:18:58 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/em/docs/advanced/dataclasses.md
{!../../docs_src/dataclasses/tutorial003.py!} ``` 1️⃣. 👥 🗄 `field` ⚪️➡️ 🐩 `dataclasses`. 2️⃣. `pydantic.dataclasses` 💧-♻ `dataclasses`. 3️⃣. `Author` 🎻 🔌 📇 `Item` 🎻. 4️⃣. `Author` 🎻 ⚙️ `response_model` 🔢. 5️⃣. 👆 💪 ⚙️ 🎏 🐩 🆎 ✍ ⏮️ 🎻 📨 💪. 👉 💼, ⚫️ 📇 `Item` 🎻. 6️⃣. 📥 👥 🛬 📖 👈 🔌 `items` ❔ 📇 🎻. FastAPI 🎯 <abbr title="converting the data to a format that can be transmitted">✍</abbr> 💽 🎻.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.4K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010.py
from typing import Union from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, 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, pattern="^fixedquery$", deprecated=True,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 574 bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
Imagine que você queira que um parâmetro tenha o nome `item-query`. Desta maneira: ``` http://127.0.0.1:8000/items/?item-query=foobaritems ``` Mas o nome `item-query` não é um nome de váriavel válido no Python. O que mais se aproxima é `item_query`. Mas ainda você precisa que o nome seja exatamente `item-query`...
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0)