Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 874 for tutorial001 (0.14 sec)

  1. docs/de/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    ## `Cookie`-Parameter deklarieren
    
    Dann deklarieren Sie Ihre Cookie-Parameter, auf die gleiche Weise, wie Sie auch `Path`- und `Query`-Parameter deklarieren.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    ## 声明 `Cookie` 参数
    
    声明 `Cookie` 参数的方式与声明 `Query` 和 `Path` 参数相同。
    
    第一个值是默认值,还可以传递所有验证参数或注释参数:
    
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/sub-applications.md

    ```Python hl_lines="3  6-8"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Sub-aplicação
    
    Em seguida, crie sua sub-aplicação e suas *operações de rota*.
    
    Essa sub-aplicação é apenas outra aplicação FastAPI padrão, mas esta é a que será "montada":
    
    ```Python hl_lines="11  14-16"
    {!../../docs_src/sub_applications/tutorial001.py!}
    ```
    
    ### Monte a sub-aplicação
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. docs/en/docs/how-to/custom-request-and-route.md

    All we need to do is handle the request inside a `try`/`except` block:
    
    {* ../../docs_src/custom_request_and_route/tutorial002.py hl[13,15] *}
    
    If an exception occurs, the`Request` instance will still be in scope, so we can read and make use of the request body when handling the error:
    
    {* ../../docs_src/custom_request_and_route/tutorial002.py hl[16:18] *}
    
    ## Custom `APIRoute` class in a router
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. docs/uk/docs/tutorial/body-fields.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Варто користуватись `Annotated` версією, якщо це можливо.
    
    ///
    
    ```Python hl_lines="4"
    {!> ../../docs_src/body_fields/tutorial001.py!}
    ```
    
    ////
    
    /// warning
    
    Зверніть увагу, що `Field` імпортується прямо з `pydantic`, а не з `fastapi`, як всі інші (`Query`, `Path`, `Body` тощо).
    
    ///
    
    ## Оголошення атрибутів моделі
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request-forms.md

    ## Importe `Form`
    
    Importe `Form` de `fastapi`:
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ## Declare parâmetros de `Form`
    
    Crie parâmetros de formulário da mesma forma que você faria para `Body` ou `Query`:
    
    ```Python hl_lines="7"
    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/path-operation-advanced-configuration.md

    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial001.py!}
    ```
    
    ### ⚙️ *➡ 🛠️ 🔢* 📛 {
    
    🚥 👆 💚 ⚙️ 👆 🔗' 🔢 📛 `operationId`Ⓜ, 👆 💪 🔁 🤭 🌐 👫 & 🔐 🔠 *➡ 🛠️* `operation_id` ⚙️ 👫 `APIRoute.name`.
    
    👆 🔜 ⚫️ ⏮️ ❎ 🌐 👆 *➡ 🛠️*.
    
    ```Python hl_lines="2  12-21  24"
    {!../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/body-nested-models.md

    Por exemplo, nós podemos definir um modelo `Image`:
    
    ```Python hl_lines="9-11"
    {!../../docs_src/body_nested_models/tutorial004.py!}
    ```
    
    ### Use o sub-modelo como um tipo
    
    E então podemos usa-lo como o tipo de um atributo:
    
    ```Python hl_lines="20"
    {!../../docs_src/body_nested_models/tutorial004.py!}
    ```
    
    Isso significa que o **FastAPI** vai esperar um corpo similar à:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/header-params.md

    ## `Header` 임포트
    
    먼저 `Header`를 임포트합니다:
    
    ```Python hl_lines="3"
    {!../../docs_src/header_params/tutorial001.py!}
    ```
    
    ## `Header` 매개변수 선언
    
    `Path`, `Query` 그리고 `Cookie`를 사용한 동일한 구조를 이용하여 헤더 매개변수를 선언합니다.
    
    첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다:
    
    ```Python hl_lines="9"
    {!../../docs_src/header_params/tutorial001.py!}
    ```
    
    /// note | "기술 세부사항"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    これは、Pythonの関数です。
    
    この関数は、`GET`オペレーションを使ったURL「`/`」へのリクエストを受け取るたびに**FastAPI**によって呼び出されます。
    
    この場合、この関数は`async`関数です。
    
    ---
    
    `async def`の代わりに通常の関数として定義することもできます:
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | "備考"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top