Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1521 - 1530 of 1,916 for FastApi (0.04 sec)

  1. tests/test_tutorial/test_body/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_generate_clients/test_tutorial002.py

    from fastapi.testclient import TestClient
    
    from docs_src.generate_clients.tutorial002_py39 import app
    
    client = TestClient(app)
    
    
    def test_post_items():
        response = client.post("/items/", json={"name": "Foo", "price": 5})
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Item received"}
    
    
    def test_post_users():
        response = client.post(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/openapi-callbacks.md

        * Dies erfolgt durch Senden eines POST-Requests (von *Ihrer API*) an eine *externe API*, die von diesem externen Entwickler bereitgestellt wird (das ist der „Callback“).
    
    ## Die normale **FastAPI**-Anwendung { #the-normal-fastapi-app }
    
    Sehen wir uns zunächst an, wie die normale API-Anwendung aussehen würde, bevor wir den Callback hinzufügen.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/events.md

    In our code example above, we don't use it directly, but we pass it to FastAPI for it to use it.
    
    The `lifespan` parameter of the `FastAPI` app takes an **async context manager**, so we can pass our new `lifespan` async context manager to it.
    
    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/events.md

    No nosso exemplo de código acima, não o usamos diretamente, mas passamos para o FastAPI para que ele o use.
    
    O parâmetro `lifespan` da aplicação `FastAPI` aceita um **gerenciador de contexto assíncrono**, então podemos passar para ele nosso novo gerenciador de contexto assíncrono `lifespan`.
    
    {* ../../docs_src/events/tutorial003_py39.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. docs/ko/docs/python-types.md

    ///
    
    **FastAPI**는 모두 Pydantic을 기반으로 되어 있습니다.
    
    이 모든 것이 실제로 어떻게 사용되는지에 대해서는 [자습서 - 사용자 안내서](tutorial/index.md){.internal-link target=_blank} 에서 더 많이 확인하실 수 있습니다.
    
    ## **FastAPI**에서의 타입 힌트
    
    **FastAPI**는 여러 부분에서 타입 힌트의 장점을 취하고 있습니다.
    
    **FastAPI**에서 타입 힌트와 함께 매개변수를 선언하면 장점은:
    
    * **에디터 도움**.
    * **타입 확인**.
    
    ...그리고 **FastAPI**는 같은 정의를 아래에도 적용합니다:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. docs/de/docs/virtual-environments.md

    // Führen Sie dies jetzt nicht aus, es ist nur ein Beispiel 🤓
    $ pip install "fastapi[standard]"
    ---> 100%
    ```
    
    </div>
    
    Das lädt eine komprimierte Datei mit dem FastAPI-Code herunter, normalerweise von <a href="https://pypi.org/project/fastapi/" class="external-link" target="_blank">PyPI</a>.
    
    Es wird auch Dateien für andere Pakete **herunterladen**, von denen FastAPI abhängt.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 17:32:56 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/path-params-numeric-validations.md

    ## Импорт `Path` { #import-path }
    
    Сначала импортируйте `Path` из `fastapi`, а также импортируйте `Annotated`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *}
    
    /// info | Информация
    
    Поддержка `Annotated` была добавлена в FastAPI начиная с версии 0.95.0 (и с этой версии рекомендуется использовать этот подход).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/cookie-param-models.md

    Объявите параметры **cookie**, которые вам нужны, в **Pydantic-модели**, а затем объявите параметр как `Cookie`:
    
    {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *}
    
    **FastAPI** **извлечёт** данные для **каждого поля** из **cookies**, полученных в запросе, и выдаст вам объявленную Pydantic-модель.
    
    ## Проверка сгенерированной документации { #check-the-docs }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py

    import importlib
    from types import ModuleType
    
    import pytest
    from fastapi.testclient import TestClient
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial001_py39"),
            pytest.param("tutorial001_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.openapi_callbacks.{request.param}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top