- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 378 for item_1 (0.18 seconds)
-
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) {Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 6.1K bytes - Click Count (0) -
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 }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 02 17:32:56 GMT 2025 - 33.6K bytes - Click Count (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 }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 32.1K bytes - Click Count (0) -
docs/es/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 } Ahora, en el mismo directorio del proyecto, crea un archivo `Dockerfile` con: ```{ .dockerfile .annotate }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:33:45 GMT 2025 - 32K bytes - Click Count (0) -
docs/zh/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 现在在相同的project目录创建一个名为`Dockerfile`的文件: ```{ .dockerfile .annotate } # (1) FROM python:3.9 # (2)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Aug 12 21:47:53 GMT 2024 - 31.2K bytes - Click Count (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 }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:16:35 GMT 2025 - 5.6K bytes - Click Count (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 }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 5.8K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial004.py
client = TestClient(mod.app) access_token = get_access_token(client=client) response = client.get( "/users/me/items/", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo", "owner": "johndoe"}] def test_openapi_schema(mod: ModuleType): client = TestClient(mod.app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial005.py
client = TestClient(mod.app) access_token = get_access_token(scope="me items", client=client) response = client.get( "/users/me/items/", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo", "owner": "johndoe"}] def test_read_system_status(mod: ModuleType):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 15.8K bytes - Click Count (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) ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 174.6K bytes - Click Count (0)