- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 445 for item_1 (0.05 seconds)
-
docs/zh/docs/deployment/docker.md
```Python 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: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } 现在在同一个项目目录下创建 `Dockerfile` 文件: ```{ .dockerfile .annotate } # (1)! FROM python:3.14 # (2)!
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 24.8K bytes - Click Count (0) -
docs_src/security/tutorial004_an_py310.py
async def read_users_me( current_user: Annotated[User, Depends(get_current_active_user)], ) -> User: return current_user @app.get("/users/me/items/") async def read_own_items( current_user: Annotated[User, Depends(get_current_active_user)], ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 18:10:35 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/tr/docs/deployment/docker.md
```Python 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: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Şimdi aynı proje dizininde `Dockerfile` adlı bir dosya oluşturun ve içine şunları yazın:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 29.6K bytes - Click Count (0) -
docs/fr/docs/tutorial/bigger-applications.md
## Créer un autre module avec `APIRouter` { #another-module-with-apirouter } Supposons que vous ayez également les endpoints dédiés à la gestion des « items » de votre application dans le module `app/routers/items.py`. Vous avez des *chemins d'accès* pour : * `/items/` * `/items/{item_id}` C'est exactement la même structure que pour `app/routers/users.py`. Mais nous voulons être plus malins et simplifier un peu le code.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 21.4K bytes - Click Count (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.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 20.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/bigger-applications.md
{* ../../docs_src/bigger_applications/app_an_py310/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *} Como o path de cada *operação de rota* tem que 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`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 20.3K bytes - Click Count (0) -
docs/ja/docs/tutorial/query-params.md
"input": null } ] } ``` `needy` は必須のパラメータなので、URLにセットする必要があります: ``` http://127.0.0.1:8000/items/foo-item?needy=sooooneedy ``` ...これはうまくいくでしょう: ```JSON { "item_id": "foo-item", "needy": "sooooneedy" } ``` そして当然、あるパラメータを必須に、あるパラメータにデフォルト値を設定し、またあるパラメータを完全にオプショナルにできます: {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/uk/docs/deployment/docker.md
```Python 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: str | None = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Тепер у тій самій директорії проєкту створіть файл `Dockerfile` з вмістом: ```{ .dockerfile .annotate }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 44.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/RenderDataUtilTest.java
} @Test public void test_register_nonEntityList() { RenderData data = new RenderData(); List<String> stringList = Arrays.asList("item1", "item2", "item3"); RenderDataUtil.register(data, "strings", stringList); Object result = data.getDataMap().get("strings");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.2K bytes - Click Count (0) -
docs/es/docs/deployment/docker.md
```Python 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: 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 Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 30.8K bytes - Click Count (0)