Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 874 for tutorial001 (0.19 sec)

  1. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    {!../../docs_src/path_operation_advanced_configuration/tutorial001.py!}
    ```
    
    ### 使用 *路径操作函数* 的函数名作为 operationId
    
    如果你想用你的 API 的函数名作为 `operationId` 的名字,你可以遍历一遍 API 的函数名,然后使用他们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。
    
    你应该在添加了所有 *路径操作* 之后执行此操作。
    
    ```Python hl_lines="2 12 13 14 15 16 17 18 19 20 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
    - 1.9K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11-15"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="9-13"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    💸 🙋 `__init__` 👩‍🔬 ⚙️ ✍ 👐 🎓:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="12"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/body.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="2"
    {!> ../../docs_src/body/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="4"
    {!> ../../docs_src/body/tutorial001.py!}
    ```
    
    ////
    
    ## 여러분의 데이터 모델 만들기
    
    `BaseModel`를 상속받은 클래스로 여러분의 데이터 모델을 선언합니다.
    
    모든 어트리뷰트에 대해 표준 파이썬 타입을 사용합니다:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="5-9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. docs/pt/docs/how-to/custom-request-and-route.md

    ```Python hl_lines="13  15"
    {!../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    Se uma exceção ocorrer, a instância `Request` ainda estará em escopo, então podemos ler e fazer uso do corpo da requisição ao lidar com o erro:
    
    ```Python hl_lines="16-18"
    {!../../docs_src/custom_request_and_route/tutorial002.py!}
    ```
    
    ## Classe `APIRoute` personalizada em um router
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:33:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. docs/uk/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, використовуючи таку ж конструкцію як для `Path` і `Query`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/cookie-params.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    ## Declare `Cookie` parameters
    
    Then declare the cookie parameters using the same structure as with `Path` and `Query`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/request-forms.md

    ////
    
    //// tab | Python 3.8+ без Annotated
    
    /// tip | "Подсказка"
    
    Рекомендуется использовать 'Annotated' версию, если это возможно.
    
    ///
    
    ```Python hl_lines="1"
    {!> ../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ////
    
    ## Определение параметров `Form`
    
    Создайте параметры формы так же, как это делается для `Body` или `Query`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. docs/ja/docs/tutorial/request-forms-and-files.md

    ///
    
    ## `File`と`Form`のインポート
    
    ```Python hl_lines="1"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## `File`と`Form`のパラメータの定義
    
    ファイルやフォームのパラメータは`Body`や`Query`の場合と同じように作成します:
    
    ```Python hl_lines="8"
    {!../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ファイルとフォームフィールドがフォームデータとしてアップロードされ、ファイルとフォームフィールドを受け取ります。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/response-status-code.md

    ///
    
    ## 状态码名称快捷方式
    
    再看下之前的例子:
    
    ```Python hl_lines="6"
    {!../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    `201` 表示**已创建**的状态码。
    
    但我们没有必要记住所有代码的含义。
    
    可以使用 `fastapi.status` 中的快捷变量。
    
    ```Python hl_lines="1  6"
    {!../../docs_src/response_status_code/tutorial002.py!}
    ```
    
    这只是一种快捷方式,具有相同的数字代码,但它可以使用编辑器的自动补全功能:
    
    <img src="../../../../../../img/tutorial/response-status-code/image02.png">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/path-operation-configuration.md

    ```Python hl_lines="17  22  27"
    {!../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    전달된 태그들은 OpenAPI의 스키마에 추가되며, 자동 문서 인터페이스에서 사용됩니다:
    
    <img src="/img/tutorial/path-operation-configuration/image01.png">
    
    ## 요약과 기술
    
    `summary`와 `description`을 추가할 수 있습니다:
    
    ```Python hl_lines="20-21"
    {!../../docs_src/path_operation_configuration/tutorial003.py!}
    ```
    
    ## 독스트링으로 만든 기술
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top