Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 643 for tutorial005_py39 (0.06 sec)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial005_py39"),
            pytest.param("tutorial005_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. docs/es/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    Toma algún texto o bytes y devuelve un response HTML, como leíste arriba.
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    Toma algún texto o bytes y devuelve un response de texto plano.
    
    {* ../../docs_src/custom_response/tutorial005_py39.py hl[2,7,9] *}
    
    ### `JSONResponse` { #jsonresponse }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/query-params.md

    Porém, quando você quiser fazer com que o parâmetro de consulta seja obrigatório, você pode simplesmente não declarar nenhum valor como padrão.
    
    {* ../../docs_src/query_params/tutorial005_py39.py hl[6:7] *}
    
    Aqui o parâmetro de consulta `needy` é um valor obrigatório, do tipo `str`.
    
    Se você abrir no seu navegador a URL:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/query-params.md

    Pero cuando quieres hacer un parámetro de query requerido, simplemente no declares ningún valor por defecto:
    
    {* ../../docs_src/query_params/tutorial005_py39.py hl[6:7] *}
    
    Aquí el parámetro de query `needy` es un parámetro de query requerido de tipo `str`.
    
    Si abres en tu navegador una URL como:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/query-params.md

    But when you want to make a query parameter required, you can just not declare any default value:
    
    {* ../../docs_src/query_params/tutorial005_py39.py hl[6:7] *}
    
    Here the query parameter `needy` is a required query parameter of type `str`.
    
    If you open in your browser a URL like:
    
    ```
    http://127.0.0.1:8000/items/foo-item
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    Você pode utilizá-lo enquanto desenvolve seu app para registrar o *body* e debugá-lo, e assim retorná-lo ao usuário, etc.
    
    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Tente enviar um item inválido como este:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/handling-errors.md

    Podrías usarlo mientras desarrollas tu aplicación para registrar el body y depurarlo, devolverlo al usuario, etc.
    
    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Ahora intenta enviar un ítem inválido como:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    The `RequestValidationError` contains the `body` it received with invalid data.
    
    You could use it while developing your app to log the body and debug it, return it to the user, etc.
    
    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Now try sending an invalid item like:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. docs/pt/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    Usa algum texto ou sequência de bytes e retorna uma resposta HTML. Como você leu acima.
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    Usa algum texto ou sequência de bytes para retornar uma resposta de texto não formatado.
    
    {* ../../docs_src/custom_response/tutorial005_py39.py hl[2,7,9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/extra-models.md

    En este caso, puedes usar `typing.Dict` (o solo `dict` en Python 3.9 y posteriores):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    
    ## Recapitulación { #recap }
    
    Usa múltiples modelos Pydantic y hereda libremente para cada caso.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 7.6K bytes
    - Viewed (0)
Back to top