Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 877 for tutorial002 (0.08 sec)

  1. tests/test_tutorial/test_query_param_models/test_tutorial002.py

    from inline_snapshot import snapshot
    
    from tests.utils import needs_py39, needs_py310, needs_pydanticv1, needs_pydanticv2
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002", marks=needs_pydanticv2),
            pytest.param("tutorial002_py39", marks=[needs_py39, needs_pydanticv2]),
            pytest.param("tutorial002_py310", marks=[needs_py310, needs_pydanticv2]),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/schema-extra-example.md

    🕐❔ ⚙️ `Field()` ⏮️ Pydantic 🏷, 👆 💪 📣 ➕ ℹ **🎻 🔗** 🚶‍♀️ 🙆 🎏 ❌ ❌ 🔢.
    
    👆 💪 ⚙️ 👉 🚮 `example` 🔠 🏑:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="4  10-13"
    {!> ../../docs_src/schema_extra_example/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="2  8-11"
    {!> ../../docs_src/schema_extra_example/tutorial002_py310.py!}
    ```
    
    ////
    
    /// warning
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/response-directly.md

    Sie könnten Ihren XML-Inhalt als String in eine `Response` einfügen und sie zurückgeben:
    
    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ## Anmerkungen
    
    Wenn Sie eine `Response` direkt zurücksenden, werden deren Daten weder validiert, konvertiert (serialisiert), noch automatisch dokumentiert.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/response-directly.md

    Podrías poner tu contenido XML en un string, ponerlo en una `Response` y devolverlo:
    
    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ## Notas
    
    Cuando devuelves una `Response` directamente, los datos no son validados, convertidos (serializados), ni documentados automáticamente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/header-param-models.md

    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip | Dica
    
    Utilize a versão com `Annotated` se possível.
    
    ///
    
    ```Python hl_lines="10"
    {!> ../../docs_src/header_param_models/tutorial002.py!}
    ```
    
    ////
    
    Se um cliente tentar enviar alguns **cabeçalhos extra**, eles irão receber uma resposta de **erro**.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:41:28 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

    from inline_snapshot import snapshot
    
    from tests.utils import needs_py39, needs_py310, needs_pydanticv1, needs_pydanticv2
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002", marks=needs_pydanticv2),
            pytest.param("tutorial002_py310", marks=[needs_py310, needs_pydanticv2]),
            pytest.param("tutorial002_an", marks=needs_pydanticv2),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_request_files/test_tutorial002.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.request_files.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_post_form_no_body():
        response = client.post("/files/")
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/extra-models.md

    {!> ../../docs_src/extra_models/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9  15-16  19-20  23-24"
    {!> ../../docs_src/extra_models/tutorial002.py!}
    ```
    
    ////
    
    ## `Union` 或者 `anyOf`
    
    响应可以声明为两种类型的 `Union` 类型,即该响应可以是两种类型中的任意类型。
    
    在 OpenAPI 中可以使用 `anyOf` 定义。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. docs/ru/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!}
    ```
    
    ////
    
    В этом случае **FastAPI** заметит, что в функции есть более одного параметра тела (два параметра, которые являются моделями Pydantic).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/additional-responses.md

    🖼, 👆 💪 🚮 🌖 📻 🆎 `image/png`, 📣 👈 👆 *➡ 🛠️* 💪 📨 🎻 🎚 (⏮️ 📻 🆎 `application/json`) ⚖️ 🇩🇴 🖼:
    
    ```Python hl_lines="19-24  28"
    {!../../docs_src/additional_responses/tutorial002.py!}
    ```
    
    /// note
    
    👀 👈 👆 ✔️ 📨 🖼 ⚙️ `FileResponse` 🔗.
    
    ///
    
    /// info
    
    🚥 👆 ✔ 🎏 📻 🆎 🎯 👆 `responses` 🔢, FastAPI 🔜 🤔 📨 ✔️ 🎏 📻 🆎 👑 📨 🎓 (🔢 `application/json`).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top