Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 874 for tutorial001 (0.07 sec)

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

    ```Python hl_lines="9"
    {!../../docs_src/query_params/tutorial002.py!}
    ```
    
    この場合、関数パラメータ `q` はオプショナルとなり、デフォルトでは `None` になります。
    
    /// check | "確認"
    
    パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。
    
    ///
    
    ## クエリパラメータの型変換
    
    `bool` 型も宣言できます。これは以下の様に変換されます:
    
    ```Python hl_lines="9"
    {!../../docs_src/query_params/tutorial003.py!}
    ```
    
    この場合、以下にアクセスすると:
    
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/cookie-param-models.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="9-12  16"
    {!> ../../docs_src/cookie_param_models/tutorial001.py!}
    ```
    
    ////
    
    **FastAPI** will **extract** the data for **each field** from the **cookies** received in the request and give you the Pydantic model you defined.
    
    ## Check the Docs
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/behind-a-proxy.md

    In this case, the original path `/app` would actually be served at `/api/v1/app`.
    
    Even though all your code is written assuming there's just `/app`.
    
    {* ../../docs_src/behind_a_proxy/tutorial001.py hl[6] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:49:49 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/testing-dependencies.md

    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="28-29  32"
    {!> ../../docs_src/dependency_testing/tutorial001.py!}
    ```
    
    ////
    
    /// tip | "Tipp"
    
    Sie können eine Überschreibung für eine Abhängigkeit festlegen, die an einer beliebigen Stelle in Ihrer **FastAPI**-Anwendung verwendet wird.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/testing-dependencies.md

    对于这些用例,**FastAPI** 应用支持 `app.dependency_overrides` 属性,该属性就是**字典**。
    
    要在测试时覆盖原有依赖项,这个字典的键应当是原依赖项(函数),值是覆盖依赖项(另一个函数)。
    
    这样一来,**FastAPI** 就会调用覆盖依赖项,不再调用原依赖项。
    
    ```Python hl_lines="26-27  30"
    {!../../docs_src/dependency_testing/tutorial001.py!}
    ```
    
    /// tip | "提示"
    
    **FastAPI** 应用中的任何位置都可以实现覆盖依赖项。
    
    原依赖项可用于*路径操作函数*、*路径操作装饰器*(不需要返回值时)、`.include_router()` 调用等。
    
    FastAPI 可以覆盖这些位置的依赖项。
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/testing-dependencies.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip | "Dica"
    
    Prefira utilizar a versão `Annotated` se possível.
    
    ///
    
    ```Python hl_lines="28-29  32"
    {!> ../../docs_src/dependency_testing/tutorial001.py!}
    ```
    
    ////
    
    /// tip | "Dica"
    
    Você pode definir uma sobreposição de dependência para uma dependência que é utilizada em qualquer lugar da sua aplicação **FastAPI**.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/cors.md

    * Отдельных HTTP-методов (`POST`, `PUT`) или всех вместе, используя `"*"`.
    * Отдельных HTTP-заголовков или всех вместе, используя `"*"`.
    
    ```Python hl_lines="2  6-11  13-19"
    {!../../docs_src/cors/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/generate-clients.md

    //// tab | Python
    
    ```Python
    {!> ../../docs_src/generate_clients/tutorial004.py!}
    ```
    
    ////
    
    //// tab | Node.js
    
    ```Javascript
    {!> ../../docs_src/generate_clients/tutorial004.js!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. docs/ja/docs/advanced/additional-status-codes.md

    しかし、新しいitemも許可したいです。itemが存在しない場合は、それらを作成して201 "Created"を返します。
    
    これを達成するには、 `JSONResponse` をインポートし、 `status_code` を設定して直接内容を返します。
    
    ```Python hl_lines="4  25"
    {!../../docs_src/additional_status_codes/tutorial001.py!}
    ```
    
    /// warning | "注意"
    
    上記の例のように `Response` を明示的に返す場合、それは直接返されます。
    
    モデルなどはシリアライズされません。
    
    必要なデータが含まれていることや、値が有効なJSONであること (`JSONResponse` を使う場合) を確認してください。
    
    ///
    
    /// note | "技術詳細"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/path-params.md

    ```Python hl_lines="17"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    #### *Enumeration Değerini* Edinelim
    
    `model_name.value` veya genel olarak `your_enum_member.value` tanımlarını kullanarak (bu durumda bir `str` olan) gerçek değere ulaşabilirsiniz:
    
    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip | "İpucu"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top