Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 659 for tutorial002_py39 (0.06 sec)

  1. docs/ru/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py39.py hl[17] *}
    
    #### Получение *значения перечисления* { #get-the-enumeration-value }
    
    Можно получить фактическое значение (в данном случае - `str`) с помощью `model_name.value` или в общем случае `your_enum_member.value`:
    
    {* ../../docs_src/path_params/tutorial005_py39.py hl[20] *}
    
    /// tip | Подсказка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/response-directly.md

    You could put your XML content in a string, put that in a `Response`, and return it:
    
    {* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *}
    
    ## Notes { #notes }
    
    When you return a `Response` directly its data is not validated, converted (serialized), or documented automatically.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/metadata.md

    By default, the OpenAPI schema is served at `/openapi.json`.
    
    But you can configure it with the parameter `openapi_url`.
    
    For example, to set it to be served at `/api/v1/openapi.json`:
    
    {* ../../docs_src/metadata/tutorial002_py39.py hl[3] *}
    
    If you want to disable the OpenAPI schema completely you can set `openapi_url=None`, that will also disable the documentation user interfaces that use it.
    
    ## Docs URLs { #docs-urls }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/handling-errors.md

    Você provavelmente não precisará utilizar esses headers diretamente no seu código.
    
    Mas caso você precise, para um cenário mais complexo, você pode adicionar headers customizados:
    
    {* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *}
    
    ## Instale manipuladores de exceções customizados { #install-custom-exception-handlers }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/handling-errors.md

    Probablemente no necesitarás usarlos directamente en tu código.
    
    Pero en caso de que los necesites para un escenario avanzado, puedes agregar headers personalizados:
    
    {* ../../docs_src/handling_errors/tutorial002_py39.py hl[14] *}
    
    ## Instalar manejadores de excepciones personalizados { #install-custom-exception-handlers }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/response-status-code.md

    Veamos de nuevo el ejemplo anterior:
    
    {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *}
    
    `201` es el código de estado para "Created".
    
    Pero no tienes que memorizar lo que significa cada uno de estos códigos.
    
    Puedes usar las variables de conveniencia de `fastapi.status`.
    
    {* ../../docs_src/response_status_code/tutorial002_py39.py hl[1,6] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/events.md

    ### `shutdown` event { #shutdown-event }
    
    To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`:
    
    {* ../../docs_src/events/tutorial002_py39.py hl[6] *}
    
    Here, the `shutdown` event handler function will write a text line `"Application shutdown"` to a file `log.txt`.
    
    /// info
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/events.md

    ### Evento `shutdown` { #shutdown-event }
    
    Para adicionar uma função que deve ser executada quando a aplicação estiver encerrando, declare-a com o evento `"shutdown"`:
    
    {* ../../docs_src/events/tutorial002_py39.py hl[6] *}
    
    Aqui, a função de manipulador do evento `shutdown` escreverá uma linha de texto `"Application shutdown"` no arquivo `log.txt`.
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial002.py

    import importlib
    
    import pytest
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="app",
        params=[
            "tutorial002_py39",
            "tutorial002_an_py39",
        ],
    )
    def get_app(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.request_files.{request.param}")
    
        return mod.app
    
    
    @pytest.fixture(name="client")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/response-directly.md

    Sie könnten Ihren XML-Inhalt als String in eine `Response` einfügen und sie zurückgeben:
    
    {* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *}
    
    ## Anmerkungen { #notes }
    
    Wenn Sie eine `Response` direkt zurücksenden, werden deren Daten weder validiert, konvertiert (serialisiert), noch automatisch dokumentiert.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top