- Sort Score
- Num 10 results
- Language All
Results 591 - 600 of 685 for Dict (0.02 seconds)
-
docs/de/docs/advanced/security/oauth2-scopes.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 15.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
따라서 해커는 다른 시스템에서 동일한 암호를 사용하려고 시도할 수 없습니다(많은 사용자가 모든 곳에서 동일한 암호를 사용하므로 이는 위험할 수 있습니다). {* ../../docs_src/security/tutorial003_an_py310.py hl[82:85] *} #### `**user_dict`에 대해 { #about-user-dict } `UserInDB(**user_dict)`는 다음을 의미한다: *`user_dict`의 키와 값을 다음과 같은 키-값 인수로 직접 전달합니다:* ```Python UserInDB( username = user_dict["username"], email = user_dict["email"],Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/de/docs/advanced/templates.md
### Template-Kontextwerte { #template-context-values } Im HTML, welches enthält: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ... wird die `id` angezeigt, welche dem „Kontext“-`dict` entnommen wird, welches Sie übergeben haben: ```Python {"id": id} ``` Mit beispielsweise einer ID `42` würde das wie folgt gerendert werden: ```html Item ID: 42 ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/tr/docs/advanced/security/oauth2-scopes.md
İlk değişiklik, artık OAuth2 security scheme'ini iki adet kullanılabilir scope ile tanımlamamız: `me` ve `items`. `scopes` parametresi; her scope'un key, açıklamasının ise value olduğu bir `dict` alır: {* ../../docs_src/security/tutorial005_an_py310.py hl[63:66] *} Bu scope'ları tanımladığımız için, login/authorize yaptığınızda API dokümanlarında görünecekler.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 14.7K bytes - Click Count (0) -
docs/zh/docs/tutorial/response-model.md
# 响应模型 - 返回类型 { #response-model-return-type } 你可以通过为*路径操作函数*的**返回类型**添加注解来声明用于响应的类型。 和为输入数据在函数**参数**里做类型注解的方式相同,你可以使用 Pydantic 模型、`list`、`dict`、以及整数、布尔值等标量类型。 {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *} FastAPI 会使用这个返回类型来: * 对返回数据进行**校验**。 * 如果数据无效(例如缺少某个字段),这意味着你的应用代码有问题,没有返回应有的数据,FastAPI 将返回服务器错误而不是返回错误的数据。这样你和你的客户端都可以确定会收到期望的数据及其结构。 * 在 OpenAPI 的*路径操作*中为响应添加**JSON Schema**。 * 它会被**自动文档**使用。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 14.5K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/get-current-user.md
Você quer ter apenas um `id` e `email`, sem incluir nenhum `username` no modelo? Claro. Você pode usar essas mesmas ferramentas. Você quer ter apenas uma `str`? Ou apenas um `dict`? Ou uma instância de modelo de classe de banco de dados diretamente? Tudo funciona da mesma forma.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/ja/docs/advanced/response-headers.md
(Cookie と同様に)*path operation 関数*で `Response` 型のパラメータを宣言できます。 そして、その*一時的*なレスポンスオブジェクトにヘッダーを設定できます。 {* ../../docs_src/response_headers/tutorial002_py310.py hl[1, 7:8] *} その後は通常どおり、必要な任意のオブジェクト(`dict`、データベースモデルなど)を返せます。 `response_model` を宣言している場合は、返したオブジェクトのフィルタと変換に引き続き使用されます。 **FastAPI** はその*一時的*なレスポンスからヘッダー(Cookie やステータスコードも含む)を取り出し、`response_model` によってフィルタされた返却値を含む最終的なレスポンスに反映します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/templates.md
{!../../docs_src/templates/templates/item.html!} ``` ### 模板 context 值 { #template-context-values } 在包含以下內容的 HTML 中: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...它會顯示你在傳入的 context `dict` 中提供的 `id`: ```Python {"id": id} ``` 例如,若 ID 為 `42`,會渲染為: ```html Item ID: 42 ``` ### 模板 `url_for` 參數 { #template-url-for-arguments }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.3K bytes - Click Count (0) -
docs/fr/docs/tutorial/dependencies/index.md
* Un paramètre de requête optionnel `skip` qui est un `int`, et vaut `0` par défaut. * Un paramètre de requête optionnel `limit` qui est un `int`, et vaut `100` par défaut. Puis elle retourne simplement un `dict` contenant ces valeurs. /// info FastAPI a ajouté la prise en charge de `Annotated` (et a commencé à le recommander) dans la version 0.95.0.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/fr/docs/tutorial/security/simple-oauth2.md
{* ../../docs_src/security/tutorial003_an_py310.py hl[82:85] *} #### À propos de `**user_dict` { #about-user-dict } `UserInDB(**user_dict)` signifie : Passez les clés et valeurs de `user_dict` directement comme arguments clé‑valeur, équivalent à : ```Python UserInDB( username = user_dict["username"],Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 11.2K bytes - Click Count (0)