Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 924 for docs_src (0.37 sec)

  1. scripts/test.sh

    #!/usr/bin/env bash
    
    set -e
    set -x
    
    export PYTHONPATH=./docs_src
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Jun 11 21:38:15 UTC 2023
    - 99 bytes
    - Viewed (0)
  2. docs/es/docs/advanced/generate-clients.md

    Podríamos descargar el JSON de OpenAPI a un archivo `openapi.json` y luego podríamos **remover ese tag prefijado** con un script como este:
    
    {* ../../docs_src/generate_clients/tutorial004_py39.py *}
    
    //// tab | Node.js
    
    ```Javascript
    {!> ../../docs_src/generate_clients/tutorial004.js!}
    ```
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/behind-a-proxy.md

    ```
    
    </div>
    
    ### Redirecionamentos com HTTPS { #redirects-with-https }
    
    Por exemplo, suponha que você defina uma *operação de rota* `/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py39.py hl[6] *}
    
    Se o cliente tentar ir para `/items`, por padrão, ele seria redirecionado para `/items/`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/body-updates.md

    これを使うことで、デフォルト値を省略して、設定された(リクエストで送られた)データのみを含む`dict`を生成することができます:
    
    {* ../../docs_src/body_updates/tutorial002.py hl[34] *}
    
    ### Pydanticの`update`パラメータ
    
    ここで、`.copy()`を用いて既存のモデルのコピーを作成し、`update`パラメータに更新するデータを含む`dict`を渡すことができます。
    
    `stored_item_model.copy(update=update_data)`のように:
    
    {* ../../docs_src/body_updates/tutorial002.py hl[35] *}
    
    ### 部分的更新のまとめ
    
    まとめると、部分的な更新を適用するには、次のようにします:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/security/http-basic-auth.md

    * Usa ese `security` con una dependencia en tu *path operation*.
    * Devuelve un objeto de tipo `HTTPBasicCredentials`:
      * Contiene el `username` y `password` enviados.
    
    {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *}
    
    Cuando intentas abrir la URL por primera vez (o haces clic en el botón "Execute" en la documentación) el navegador te pedirá tu nombre de usuario y contraseña:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. docs/ru/docs/advanced/response-directly.md

    В таких случаях вы можете использовать `jsonable_encoder` для преобразования данных перед передачей их в ответ:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    /// note | Технические детали
    
    Вы также можете использовать `from starlette.responses import JSONResponse`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial006.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial006_py39 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/typer", follow_redirects=False)
        assert response.status_code == 307, response.text
        assert response.headers["location"] == "https://typer.tiangolo.com"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  8. docs/pt/docs/how-to/configure-swagger-ui.md

    Sem alterar as configurações, o destaque de sintaxe é habilitado por padrão:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Mas você pode desabilitá-lo definindo `syntaxHighlight` como `False`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *}
    
    ...e então o Swagger UI não mostrará mais o destaque de sintaxe:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Alterar o tema { #change-the-theme }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. docs/de/docs/how-to/separate-openapi-schemas.md

    Nehmen wir an, Sie haben ein Pydantic-Modell mit Defaultwerten wie dieses:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Modell für Eingabe { #model-for-input }
    
    Wenn Sie dieses Modell wie hier als Eingabe verwenden:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_python_types/test_tutorial003.py

    import pytest
    
    from docs_src.python_types.tutorial003_py39 import get_name_with_age
    
    
    def test_get_name_with_age_pass_int():
        with pytest.raises(TypeError):
            get_name_with_age("John", 30)
    
    
    def test_get_name_with_age_pass_str():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 308 bytes
    - Viewed (0)
Back to top