Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1911 - 1920 of 1,929 for FastAPI (0.18 sec)

  1. docs/en/docs/tutorial/body-updates.md

    /// note
    
    `PATCH` is less commonly used and known than `PUT`.
    
    And many teams use only `PUT`, even for partial updates.
    
    You are **free** to use them however you want, **FastAPI** doesn't impose any restrictions.
    
    But this guide shows you, more or less, how they are intended to be used.
    
    ///
    
    ### Using Pydantic's `exclude_unset` parameter
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/response-model.md

    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다:
    
    ```Python hl_lines="22"
    {!../../docs_src/response_model/tutorial003.py!}
    ```
    
    따라서 **FastAPI**는 출력 모델에서 선언하지 않은 모든 데이터를 (Pydantic을 사용하여) 필터링합니다.
    
    ## 문서에서 보기
    
    자동 생성 문서를 보면 입력 모델과 출력 모델이 각자의 JSON 스키마를 가지고 있음을 확인할 수 있습니다:
    
    <img src="/img/tutorial/response-model/image01.png">
    
    그리고 두 모델 모두 대화형 API 문서에 사용됩니다:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tests/test_application.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from .main import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/api_route", 200, {"message": "Hello World"}),
            ("/non_decorated_route", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 52.2K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/extra-models.md

        hashed_password = hashed_password,
    )
    ```
    
    /// warning
    
    🔗 🌖 🔢 🤖 💪 💧 💽, ✋️ 👫 ↗️ 🚫 🚚 🙆 🎰 💂‍♂.
    
    ///
    
    ## 📉 ❎
    
    📉 📟 ❎ 1️⃣ 🐚 💭 **FastAPI**.
    
    📟 ❎ 📈 🤞 🐛, 💂‍♂ ❔, 📟 🔁 ❔ (🕐❔ 👆 ℹ 1️⃣ 🥉 ✋️ 🚫 🎏), ♒️.
    
    &amp; 👉 🏷 🌐 🤝 📚 💽 &amp; ❎ 🔢 📛 &amp; 🆎.
    
    👥 💪 👻.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/extra-models.md

    ///
    
    ## Сократите дублирование
    
    Сокращение дублирования кода - это одна из главных идей **FastAPI**.
    
    Поскольку дублирование кода повышает риск появления багов, проблем с безопасностью, проблем десинхронизации кода (когда вы обновляете код в одном месте, но не обновляете в другом), и т.д.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/extra-models.md

    ///
    
    ## Reduzir duplicação
    
    Reduzir a duplicação de código é uma das ideias principais no **FastAPI**.
    
    A duplicação de código aumenta as chances de bugs, problemas de segurança, problemas de desincronização de código (quando você atualiza em um lugar, mas não em outros), etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/extra-models.md

    ///
    
    ## Reduce duplication
    
    Reducing code duplication is one of the core ideas in **FastAPI**.
    
    As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/extra-models.md

    ///
    
    ## Verdopplung vermeiden
    
    Reduzierung von Code-Verdoppelung ist eine der Kern-Ideen von **FastAPI**.
    
    Weil Verdoppelung von Code die Wahrscheinlichkeit von Fehlern, Sicherheitsproblemen, Desynchronisation (Code wird nur an einer Stelle verändert, aber nicht an einer anderen), usw. erhöht.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/body-updates.md

    つまり、更新したいデータだけを送信して、残りはそのままにしておくことができます。
    
    /// note | "備考"
    
    `PATCH`は`PUT`よりもあまり使われておらず、知られていません。
    
    また、多くのチームは部分的な更新であっても`PUT`だけを使用しています。
    
    **FastAPI** はどんな制限も課けていないので、それらを使うのは **自由** です。
    
    しかし、このガイドでは、それらがどのように使用されることを意図しているかを多かれ少なかれ、示しています。
    
    ///
    
    ### Pydanticの`exclude_unset`パラメータの使用
    
    部分的な更新を受け取りたい場合は、Pydanticモデルの`.dict()`の`exclude_unset`パラメータを使用すると非常に便利です。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. tests/test_include_router_defaults_overrides.py

    import warnings
    
    import pytest
    from fastapi import APIRouter, Depends, FastAPI, Response
    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    
    
    class ResponseLevel0(JSONResponse):
        media_type = "application/x-level-0"
    
    
    class ResponseLevel1(JSONResponse):
        media_type = "application/x-level-1"
    
    
    class ResponseLevel2(JSONResponse):
        media_type = "application/x-level-2"
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
Back to top