- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 540 for item_d (0.04 sec)
-
fastapi/param_functions.py
from typing import Annotated from fastapi import FastAPI, Path app = FastAPI() @app.get("/items/{item_id}") async def read_items( item_id: Annotated[int, Path(title="The ID of the item to get")], ): return {"item_id": item_id} ``` """ return params.Path( default=default, default_factory=default_factory, alias=alias,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 63K bytes - Viewed (0) -
fastapi/_compat/v2.py
] field_mapping, definitions = schema_generator.generate_definitions(inputs=inputs) for item_def in cast(dict[str, dict[str, Any]], definitions).values(): if "description" in item_def: item_description = cast(str, item_def["description"]).split("\f")[0] item_def["description"] = item_description new_mapping, new_definitions = _remap_definitions_and_field_mappings(Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 19.1K bytes - Viewed (0) -
docs_src/security/tutorial005_py39.py
async def read_users_me(current_user: User = Depends(get_current_active_user)): return current_user @app.get("/users/me/items/") async def read_own_items( current_user: User = Security(get_current_active_user, scopes=["items"]), ): return [{"item_id": "Foo", "owner": current_user.username}] @app.get("/status/") async def read_system_status(current_user: User = Depends(get_current_user)):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
/// ## 其他使用 `APIRouter` 的模块 假设你在位于 `app/routers/items.py` 的模块中还有专门用于处理应用程序中「项目」的端点。 你具有以下*路径操作*: * `/items/` * `/items/{item_id}` 这和 `app/routers/users.py` 的结构完全相同。 但是我们想变得更聪明并简化一些代码。 我们知道此模块中的所有*路径操作*都有相同的: * 路径 `prefix`:`/items`。 * `tags`:(仅有一个 `items` 标签)。 * 额外的 `responses`。 * `dependencies`:它们都需要我们创建的 `X-Token` 依赖项。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun May 11 13:37:26 UTC 2025 - 18.4K bytes - Viewed (0) -
tests/test_path.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 20.5K bytes - Viewed (1) -
docs/de/docs/deployment/docker.md
from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Erstellen Sie nun im selben Projektverzeichnis eine Datei `Dockerfile` mit: ```{ .dockerfile .annotate }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 02 17:32:56 UTC 2025 - 33.6K bytes - Viewed (0) -
docs/uk/docs/python-types.md
//// //// tab | Python 3.9 і вище ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial007_py39.py!} ``` //// Це означає: * Змінна `items_t` це `tuple` з 3 елементами, `int`, ще `int`, та `str`. * Змінна `items_s` це `set`, і кожен його елемент типу `bytes`. #### Dict (словник) Щоб оголосити `dict`, вам потрібно передати 2 параметри типу, розділені комами.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 19.4K bytes - Viewed (0) -
docs/zh/docs/python-types.md
由于列表是带有"子类型"的类型,所以我们把子类型放在方括号中: {* ../../docs_src/python_types/tutorial006.py hl[4] *} 这表示:"变量 `items` 是一个 `list`,并且这个列表里的每一个元素都是 `str`"。 这样,即使在处理列表中的元素时,你的编辑器也可以提供支持。 没有类型,几乎是不可能实现下面这样: <img src="https://fastapi.tiangolo.com/img/python-types/image05.png"> 注意,变量 `item` 是列表 `items` 中的元素之一。 而且,编辑器仍然知道它是一个 `str`,并为此提供了支持。 #### 元组和集合 声明 `tuple` 和 `set` 的方法也是一样的:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Aug 18 06:34:40 UTC 2025 - 8.6K bytes - Viewed (0) -
docs/pt/docs/deployment/docker.md
from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Agora, no mesmo diretório do projeto, crie um arquivo `Dockerfile` com: ```{ .dockerfile .annotate }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 32.1K bytes - Viewed (0) -
docs/en/docs/python-types.md
/// That means: "the variable `items` is a `list`, and each of the items in this list is a `str`". By doing that, your editor can provide support even while processing items from the list: <img src="/img/python-types/image05.png"> Without types, that's almost impossible to achieve. Notice that the variable `item` is one of the elements in the list `items`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 15.6K bytes - Viewed (0)