Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 877 for tutorial002 (0.12 sec)

  1. docs/em/docs/tutorial/body-multiple-params.md

        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    ✋️ 👆 💪 📣 💗 💪 🔢, ✅ `item` & `user`:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="22"
    {!> ../../docs_src/body_multiple_params/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="20"
    {!> ../../docs_src/body_multiple_params/tutorial002_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. docs/tr/docs/python-types.md

    ```Python hl_lines="1"
    {!../../docs_src/python_types/tutorial003.py!}
    ```
    
    Editör değişkenlerin tiplerini bildiğinden, yalnızca otomatik tamamlama değil, hata kontrolleri de sağlar:
    
    <img src="/img/python-types/image04.png">
    
    Artık `age` değişkenini `str(age)` olarak kullanmanız gerektiğini biliyorsunuz:
    
    ```Python hl_lines="2"
    {!../../docs_src/python_types/tutorial004.py!}
    ```
    
    ## Tip bildirme
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/custom-response.md

    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ### `HTMLResponse`
    
    Usa algum texto ou sequência de bytes e retorna uma resposta HTML. Como você leu acima.
    
    ### `PlainTextResponse`
    
    Usa algum texto ou sequência de bytes para retornar uma resposta de texto não formatado.
    
    ```Python hl_lines="2  7  9"
    {!../../docs_src/custom_response/tutorial005.py!}
    ```
    
    ### `JSONResponse`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:47:10 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/response-model.md

    ///
    
    ## 返回与输入相同的数据
    
    现在我们声明一个 `UserIn` 模型,它将包含一个明文密码属性。
    
    ```Python hl_lines="9  11"
    {!../../docs_src/response_model/tutorial002.py!}
    ```
    
    我们正在使用此模型声明输入数据,并使用同一模型声明输出数据:
    
    ```Python hl_lines="17-18"
    {!../../docs_src/response_model/tutorial002.py!}
    ```
    
    现在,每当浏览器使用一个密码创建用户时,API 都会在响应中返回相同的密码。
    
    在这个案例中,这可能不算是问题,因为用户自己正在发送密码。
    
    但是,如果我们在其他的*路径操作*中使用相同的模型,则可能会将用户的密码发送给每个客户端。
    
    /// danger
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. pyproject.toml

    "__init__.py" = ["F401"]
    "docs_src/dependencies/tutorial007.py" = ["F821"]
    "docs_src/dependencies/tutorial008.py" = ["F821"]
    "docs_src/dependencies/tutorial009.py" = ["F821"]
    "docs_src/dependencies/tutorial010.py" = ["F821"]
    "docs_src/custom_response/tutorial007.py" = ["B007"]
    "docs_src/dataclasses/tutorial003.py" = ["I001"]
    "docs_src/path_operation_advanced_configuration/tutorial007.py" = ["B904"]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 14:19:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11 12 13 14 15"
    {!../../docs_src/dependencies/tutorial002.py!}
    ```
    
    クラスのインスタンスを作成するために使用される`__init__`メソッドに注目してください:
    
    ```Python hl_lines="12"
    {!../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ...以前の`common_parameters`と同じパラメータを持っています:
    
    ```Python hl_lines="8"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    これらのパラメータは **FastAPI** が依存関係を「解決」するために使用するものです。
    
    どちらの場合も以下を持っています:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Vous devriez le faire après avoir ajouté toutes vos *paramètres de chemin*.
    
    ```Python hl_lines="2  12-21  24"
    {!../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    /// tip | "Astuce"
    
    Si vous appelez manuellement `app.openapi()`, vous devez mettre à jour les `operationId` avant.
    
    ///
    
    /// warning | "Attention"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/path-operation-advanced-configuration.md

    Sie sollten dies tun, nachdem Sie alle Ihre *Pfadoperationen* hinzugefügt haben.
    
    ```Python hl_lines="2  12-21  24"
    {!../../docs_src/path_operation_advanced_configuration/tutorial002.py!}
    ```
    
    /// tip | "Tipp"
    
    Wenn Sie `app.openapi()` manuell aufrufen, sollten Sie vorher die `operationId`s aktualisiert haben.
    
    ///
    
    /// warning | "Achtung"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/query-params.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="7"
    {!> ../../docs_src/query_params/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/query_params/tutorial002.py!}
    ```
    
    ////
    
    В этом случае, параметр  `q` будет не обязательным и будет иметь значение `None` по умолчанию.
    
    /// check | "Важно"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.configure_swagger_ui.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert (
            '"syntaxHighlight": false' not in response.text
        ), "not used parameters should not be included"
        assert (
            '"syntaxHighlight.theme": "obsidian"' in response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top