- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 378 for item_2 (0.09 sec)
-
docs/en/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 } Now in the same project directory create a file `Dockerfile` with: ```{ .dockerfile .annotate } # (1)!
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 12:58:04 UTC 2025 - 29.5K bytes - Viewed (1) -
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) -
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) -
docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
{* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *} En el ejemplo anterior, el modelo de entrada es un modelo de Pydantic v1 y el modelo de salida (definido en `response_model=ItemV2`) es un modelo de Pydantic v2. ### Parámetros de Pydantic v1 { #pydantic-v1-parameters }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:16:35 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/CharMappingService.java
* the item's current state. * </p> * * @param dictId the dictionary ID to store the character mapping item in * @param charMappingItem the character mapping item to store */ public void store(final String dictId, final CharMappingItem charMappingItem) { getCharMappingFile(dictId).ifPresent(file -> { if (charMappingItem.getId() == 0) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 6.1K bytes - Viewed (0) -
docs/es/docs/tutorial/bigger-applications.md
/// ## Otro módulo con `APIRouter` { #another-module-with-apirouter } Digamos que también tienes los endpoints dedicados a manejar "items" de tu aplicación en el módulo `app/routers/items.py`. Tienes *path operations* para: * `/items/` * `/items/{item_id}` Es toda la misma estructura que con `app/routers/users.py`. Pero queremos ser más inteligentes y simplificar un poco el código.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 19.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/bigger-applications.md
{* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *} Como o caminho de cada *operação de rota* deve começar com `/`, como em: ```Python hl_lines="1" @router.get("/{item_id}") async def read_item(item_id: str): ... ``` ...o prefixo não deve incluir um `/` final. Então, o prefixo neste caso é `/items`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 20:32:40 UTC 2025 - 19.7K bytes - Viewed (0) -
docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
{* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *} No exemplo acima, o modelo de entrada é um modelo Pydantic v1, e o modelo de saída (definido em `response_model=ItemV2`) é um modelo Pydantic v2. ### Parâmetros do Pydantic v1 { #pydantic-v1-parameters }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 5.8K 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)