Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for twenty (0.03 sec)

  1. tests/test_tutorial/test_body/test_tutorial001.py

        response = client.post("/items/", json={"name": "Foo", "price": "twenty"})
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "float_parsing",
                    "loc": ["body", "price"],
                    "msg": "Input should be a valid number, unable to parse string as a number",
                    "input": "twenty",
                }
            ]
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial011.py

        "path,expected_status,expected_response",
        [
            (
                "/query-checker/",
                200,
                {"fixed_content_in_query": False},
            ),
            (
                "/query-checker/?q=qwerty",
                200,
                {"fixed_content_in_query": False},
            ),
            (
                "/query-checker/?q=foobar",
                200,
                {"fixed_content_in_query": True},
            ),
        ],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/websockets.md

    Em sua rota WebSocket você pode esperar (`await`) por mensagens e enviar mensagens.
    
    {* ../../docs_src/websockets/tutorial001_py39.py hl[48:52] *}
    
    Você pode receber e enviar dados binários, de texto e JSON.
    
    ## Tente { #try-it }
    
    Se seu arquivo for nomeado `main.py`, execute sua aplicação com:
    
    <div class="termy">
    
    ```console
    $ fastapi dev main.py
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. docs/pt/docs/python-types.md

    Mas então você deve chamar "esse método que converte a primeira letra em maiúscula".
    
    Era `upper`? Era `uppercase`? `first_uppercase`? `capitalize`?
    
    Em seguida, tente com o velho amigo do programador, o preenchimento automático do editor.
    
    Você digita o primeiro parâmetro da função, `first_name`, depois um ponto (`.`) e, em seguida, pressiona `Ctrl + Space` para acionar a conclusão.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. docs/es/docs/help-fastapi.md

        * Leer otras ideas, artículos, y leer sobre las herramientas que he creado.
        * Seguirme para leer lo que publico nuevo.
    
    ## Twittea sobre **FastAPI** { #tweet-about-fastapi }
    
    <a href="https://x.com/compose/tweet?text=I'm loving @fastapi because... https://github.com/fastapi/fastapi" class="external-link" target="_blank">Twittea sobre **FastAPI**</a> y dime a mí y a otros por qué te gusta. 🎉
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 14.8K 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"
    }
    ```
    
    Você receberá uma *response* informando-o de que os dados são inválidos, e contendo o *body* recebido:
    
    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/pt/docs/tutorial/first-steps.md

    Você também pode devolver modelos Pydantic ( você verá mais sobre isso mais tarde).
    
    Existem muitos outros objetos e modelos que serão convertidos automaticamente para JSON (incluindo ORMs, etc). Tente usar seus favoritos, é altamente provável que já sejam compatíveis.
    
    ### Passo 6: Faça o deploy { #step-6-deploy-it }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  8. docs/en/docs/python-types.md

    The important thing is that by using standard Python types, in a single place (instead of adding more classes, decorators, etc), **FastAPI** will do a lot of the work for you.
    
    /// info
    
    If you already went through all the tutorial and came back to see more about types, a good resource is <a href="https://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html" class="external-link" target="_blank">the "cheat sheet" from `mypy`</a>.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.34.md

    - Promoted the `KubeletPodResourcesDynamicResources` and `KubeletPodResourcesGet` feature gates to beta, which were enabled by default if DRA went to GA. ([#132940](https://github.com/kubernetes/kubernetes/pull/132940), [@guptaNswati](https://github.com/guptaNswati))
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Wed Dec 10 01:13:50 UTC 2025
    - 333.3K bytes
    - Viewed (1)
Back to top