Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 924 for docs_src (0.03 sec)

  1. docs/ru/docs/how-to/graphql.md

    Вот небольшой пример того, как можно интегрировать Strawberry с FastAPI:
    
    {* ../../docs_src/graphql_/tutorial001_py39.py hl[3,22,25] *}
    
    Подробнее о Strawberry можно узнать в <a href="https://strawberry.rocks/" class="external-link" target="_blank">документации Strawberry</a>.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/static-files.md

    # 静的ファイル
    
    `StaticFiles` を使用して、ディレクトリから静的ファイルを自動的に提供できます。
    
    ## `StaticFiles` の使用
    
    * `StaticFiles` をインポート。
    * `StaticFiles()` インスタンスを生成し、特定のパスに「マウント」。
    
    {* ../../docs_src/static_files/tutorial001.py hl[2,6] *}
    
    /// note | 技術詳細
    
    `from starlette.staticfiles import StaticFiles` も使用できます。
    
    **FastAPI**は、開発者の利便性のために、`starlette.staticfiles` と同じ `fastapi.staticfiles` を提供します。しかし、実際にはStarletteから直接渡されています。
    
    ///
    
    ### 「マウント」とは
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. docs/ko/docs/how-to/conditional-openapi.md

    * 등등....
    
    그럼에도 불구하고, 특정 환경(예: 프로덕션)에서 또는 환경 변수의 설정에 따라 API 문서를 비활성화해야 하는 매우 특정한 사용 사례가 있을 수 있습니다.
    
    ## 설정 및 환경변수의 조건부 OpenAPI
    
    동일한 Pydantic 설정을 사용하여 생성된 OpenAPI 및 문서 UI를 쉽게 구성할 수 있습니다.
    
    예를 들어:
    
    {* ../../docs_src/conditional_openapi/tutorial001.py hl[6,11] *}
    
    여기서 `openapi_url` 설정을 기본값인 `"/openapi.json"`으로 선언합니다.
    
    그런 뒤, 우리는 `FastAPI` 앱을 만들 때 그것을 사용합니다.
    
    환경 변수 `OPENAPI_URL`을 빈 문자열로 설정하여 OpenAPI(문서 UI 포함)를 비활성화할 수도 있습니다. 예를 들어:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Nov 07 20:41:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/debugging.md

    # 디버깅
    
    예를 들면 Visual Studio Code 또는 PyCharm을 사용하여 편집기에서 디버거를 연결할 수 있습니다.
    
    ## `uvicorn` 호출
    
    FastAPI 애플리케이션에서 `uvicorn`을 직접 임포트하여 실행합니다
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### `__name__ == "__main__"` 에 대하여
    
    `__name__ == "__main__"`의 주요 목적은 다음과 같이 파일이 호출될 때 실행되는 일부 코드를 갖는 것입니다.
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    그러나 다음과 같이 다른 파일을 가져올 때는 호출되지 않습니다.
    
    ```Python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. docs/es/docs/how-to/graphql.md

    Aquí tienes una pequeña vista previa de cómo podrías integrar Strawberry con FastAPI:
    
    {* ../../docs_src/graphql_/tutorial001_py39.py hl[3,22,25] *}
    
    Puedes aprender más sobre Strawberry en la <a href="https://strawberry.rocks/" class="external-link" target="_blank">documentación de Strawberry</a>.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

        params=[
            pytest.param("tutorial004_py39"),
            pytest.param("tutorial004_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_put_all(client: TestClient):
        response = client.put(
            "/items/123",
            json={
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial012.py

    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial012_py39"),
            pytest.param("tutorial012_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dependencies.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_no_headers_items(client: TestClient):
        response = client.get("/items/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial003.py

            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.security.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_additional_responses/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.additional_responses.tutorial003_py39 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py

        params=[
            pytest.param("tutorial006_py39"),
            pytest.param("tutorial006_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.query_params_str_validations.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_query_params_str_validations_no_query(client: TestClient):
        response = client.get("/items/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top