- Sort Score
- Result 10 results
- Languages All
Results 521 - 530 of 874 for tutorial001 (0.17 sec)
-
docs/fr/docs/tutorial/path-params.md
```Python hl_lines="17" {!../../docs_src/path_params/tutorial005.py!} ``` #### Récupérer la *valeur de l'énumération* Vous pouvez obtenir la valeur réel d'un membre (une chaîne de caractères ici), avec `model_name.value`, ou en général, `votre_membre_d'enum.value` : ```Python hl_lines="20" {!../../docs_src/path_params/tutorial005.py!} ``` /// tip | "Astuce"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10K bytes - Viewed (0) -
docs/ko/docs/advanced/response-directly.md
이러한 경우, 데이터를 응답에 전달하기 전에 `jsonable_encoder`를 사용하여 변환할 수 있습니다: ```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "기술적 세부 사항" `from starlette.responses import JSONResponse`를 사용할 수도 있습니다. **FastAPI**는 개발자의 편의를 위해 `starlette.responses`를 `fastapi.responses`로 제공합니다. 그러나 대부분의 가능한 응답은 Starlette에서 직접 제공합니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 30 20:00:57 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/zh/docs/advanced/response-directly.md
例如,如果不首先将 Pydantic 模型转换为 `dict`,并将所有数据类型(如 `datetime`、`UUID` 等)转换为兼容 JSON 的类型,则不能将其放入JSONResponse中。 对于这些情况,在将数据传递给响应之前,你可以使用 `jsonable_encoder` 来转换你的数据。 ```Python hl_lines="4 6 20 21" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "技术细节" 你也可以使用 `from starlette.responses import JSONResponse`。 出于方便,**FastAPI** 会提供与 `starlette.responses` 相同的 `fastapi.responses` 给开发者。但是大多数可用的响应都直接来自 Starlette。 ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/index.md
``` //// //// tab | Python 3.8+ Annotated가 없는 경우 /// tip | "팁" 가능하다면 `Annotated`가 달린 버전을 권장합니다. /// ```Python hl_lines="8-11" {!> ../../docs_src/dependencies/tutorial001.py!} ``` //// 이게 다입니다. **단 두 줄입니다**. 그리고, 이 함수는 여러분의 모든 *경로 작동 함수*가 가지고 있는 것과 같은 형태와 구조를 가지고 있습니다. 여러분은 이를 "데코레이터"가 없는 (`@app.get("/some-path")`가 없는) *경로 작동 함수*라고 생각할 수 있습니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-webhooks.md
When you create a **FastAPI** application, there is a `webhooks` attribute that you can use to define *webhooks*, the same way you would define *path operations*, for example with `@app.webhooks.post()`. {* ../../docs_src/openapi_webhooks/tutorial001.py hl[9:13,36:53] *} The webhooks that you define will end up in the **OpenAPI** schema and the automatic **docs UI**. /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:38:23 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-multiple-params.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip 尽可能选择使用 `Annotated` 的版本。 /// ```Python hl_lines="19-21" {!> ../../docs_src/body_multiple_params/tutorial001.py!} ``` //// /// note 请注意,在这种情况下,将从请求体获取的 `item` 是可选的。因为它的默认值为 `None`。 /// ## 多个请求体参数 在上面的示例中,*路径操作*将期望一个具有 `Item` 的属性的 JSON 请求体,就像: ```JSON { "name": "Foo",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-multiple-params.md
まず、もちろん、`Path`と`Query`とリクエストボディのパラメータの宣言は自由に混ぜることができ、 **FastAPI** は何をするべきかを知っています。 また、デフォルトの`None`を設定することで、ボディパラメータをオプションとして宣言することもできます: ```Python hl_lines="19 20 21" {!../../docs_src/body_multiple_params/tutorial001.py!} ``` /// note | "備考" この場合、ボディから取得する`item`はオプションであることに注意してください。デフォルト値は`None`です。 /// ## 複数のボディパラメータ 上述の例では、*path operations*は`item`の属性を持つ以下のようなJSONボディを期待していました: ```JSON {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
```Python hl_lines="7" {!> ../../docs_src/query_params_str_validations/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="9" {!> ../../docs_src/query_params_str_validations/tutorial001.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 25.4K bytes - Viewed (0) -
docs/ru/docs/tutorial/schema-extra-example.md
```Python hl_lines="13-21" {!> ../../docs_src/schema_extra_example/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="15-23" {!> ../../docs_src/schema_extra_example/tutorial001.py!} ``` //// Эта дополнительная информация будет включена в **JSON Schema** выходных данных для этой модели, и она будет использоваться в документации к API. /// tip | Подсказка
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-updates.md
```Python hl_lines="30-35" {!> ../../../docs_src/body_updates/tutorial001_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="30-35" {!> ../../../docs_src/body_updates/tutorial001.py!} ``` //// `PUT` é usado para receber dados que devem substituir os dados existentes. ### Aviso sobre a substituição
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 14 09:16:06 UTC 2024 - 6K bytes - Viewed (0)