Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 877 for tutorial002 (0.1 sec)

  1. docs/ko/docs/tutorial/query-params.md

    ```Python hl_lines="8  10"
    {!../../docs_src/query_params/tutorial004.py!}
    ```
    
    ## 필수 쿼리 매개변수
    
    경로가 아닌 매개변수에 대한 기본값을 선언할 때(지금은 쿼리 매개변수만 보았습니다), 해당 매개변수는 필수적(Required)이지 않았습니다.
    
    특정값을 추가하지 않고 선택적으로 만들기 위해선 기본값을 `None`으로 설정하면 됩니다.
    
    그러나 쿼리 매개변수를 필수로 만들려면 단순히 기본값을 선언하지 않으면 됩니다:
    
    ```Python hl_lines="6-7"
    {!../../docs_src/query_params/tutorial005.py!}
    ```
    
    여기 쿼리 매개변수 `needy`는 `str`형인 필수 쿼리 매개변수입니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/additional-responses.md

    ```Python hl_lines="19-24  28"
    {!../../docs_src/additional_responses/tutorial002.py!}
    ```
    
    /// note | "Nota"
    
    Note que você deve retornar a imagem utilizando um `FileResponse` diretamente.
    
    ///
    
    /// info | "Informação"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/metadata.md

    ## OpenAPI URL
    
    デフォルトでは、OpenAPIスキーマは `/openapi.json` で提供されます。
    
    ただし、パラメータ `openapi_url` を使用して設定を変更できます。
    
    たとえば、`/api/v1/openapi.json` で提供されるように設定するには:
    
    ```Python hl_lines="3"
    {!../../docs_src/metadata/tutorial002.py!}
    ```
    
    OpenAPIスキーマを完全に無効にする場合は、`openapi_url=None` を設定できます。これにより、それを使用するドキュメントUIも無効になります。
    
    ## ドキュメントのURL
    
    以下の2つのドキュメントUIを構築できます:
    
    * **Swagger UI**: `/docs` で提供されます。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/response-cookies.md

    You can declare a parameter of type `Response` in your *path operation function*.
    
    And then you can set cookies in that *temporal* response object.
    
    ```Python hl_lines="1  8-9"
    {!../../docs_src/response_cookies/tutorial002.py!}
    ```
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. docs/de/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial006.py!}
    ```
    
    Deklarieren Sie die Variable mit der gleichen Doppelpunkt-Syntax (`:`).
    
    Als Typ nehmen Sie das `List`, das Sie von `typing` importiert haben.
    
    Da die Liste ein Typ ist, welcher innere Typen enthält, werden diese von eckigen Klammern umfasst:
    
    ```Python hl_lines="4"
    {!> ../../docs_src/python_types/tutorial006.py!}
    ```
    
    ////
    
    /// tip | "Tipp"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/schema-extra-example.md

    ```Python hl_lines="2  8-11"
    {!> ../../docs_src/schema_extra_example/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="4  10-13"
    {!> ../../docs_src/schema_extra_example/tutorial002.py!}
    ```
    
    ////
    
    /// warning
    
    请记住,传递的那些额外参数不会添加任何验证,只会添加注释,用于文档的目的。
    
    ///
    
    ## `Body` 额外参数
    
    你可以通过传递额外信息给 `Field` 同样的方式操作`Path`, `Query`, `Body`等。
    
    比如,你可以将请求体的一个 `example` 传递给 `Body`:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/header-params.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="10"
    {!> ../../docs_src/header_params/tutorial002.py!}
    ```
    
    ////
    
    /// warning
    
    Before setting `convert_underscores` to `False`, bear in mind that some HTTP proxies and servers disallow the usage of headers with underscores.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-multiple-params.md

    ```Python hl_lines="20"
    {!> ../../docs_src/body_multiple_params/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="22"
    {!> ../../docs_src/body_multiple_params/tutorial002.py!}
    ```
    
    ////
    
    In this case, **FastAPI** will notice that there is more than one body parameter in the function (there are two parameters that are Pydantic models).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/body-multiple-params.md

    ```Python hl_lines="20"
    {!> ../../docs_src/body_multiple_params/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="22"
    {!> ../../docs_src/body_multiple_params/tutorial002.py!}
    ```
    
    ////
    
    In diesem Fall wird **FastAPI** bemerken, dass es mehr als einen Body-Parameter in der Funktion gibt (zwei Parameter, die Pydantic-Modelle sind).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/path-operation-configuration.md

    ```Python hl_lines="17  22  27"
    {!../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    これらはOpenAPIスキーマに追加され、自動ドキュメントのインターフェースで使用されます:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/path-operation-configuration/image01.png">
    
    ## 概要と説明
    
    `summary`と`description`を追加できます:
    
    ```Python hl_lines="20-21"
    {!../../docs_src/path_operation_configuration/tutorial003.py!}
    ```
    
    ## docstringを用いた説明
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top