Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 980 for tutorial004_py310 (0.19 seconds)

  1. docs/pt/docs/tutorial/extra-models.md

    ## Lista de modelos { #list-of-models }
    
    Da mesma forma, você pode declarar respostas de listas de objetos.
    
    Para isso, use o padrão Python `list`:
    
    {* ../../docs_src/extra_models/tutorial004_py310.py hl[18] *}
    
    ## Resposta com `dict` arbitrário { #response-with-arbitrary-dict }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  2. docs/tr/docs/advanced/additional-responses.md

    ```
    
    Bu tekniği, *path operation*'larınızda bazı ön tanımlı response'ları yeniden kullanmak ve bunları ek özel response'larla birleştirmek için kullanabilirsiniz.
    
    Örneğin:
    
    {* ../../docs_src/additional_responses/tutorial004_py310.py hl[11:15,24] *}
    
    ## OpenAPI Response'ları Hakkında Daha Fazla Bilgi { #more-information-about-openapi-responses }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  3. docs/ru/docs/advanced/additional-responses.md

    Вы можете использовать этот приём, чтобы переиспользовать некоторые предопределённые ответы в ваших операциях пути и комбинировать их с дополнительными пользовательскими.
    
    Например:
    
    {* ../../docs_src/additional_responses/tutorial004_py310.py hl[11:15,24] *}
    
    ## Дополнительная информация об ответах OpenAPI { #more-information-about-openapi-responses }
    
    Чтобы увидеть, что именно можно включать в ответы, посмотрите эти разделы спецификации OpenAPI:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/body.md

    Primeiro, você precisa importar `BaseModel` do `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Crie seu modelo de dados { #create-your-data-model }
    
    Então você declara seu modelo de dados como uma classe que herda `BaseModel`.
    
    Utilize os tipos Python padrão para todos os atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *}
    
    #### *Enumeration Value*'yu Alalım { #get-the-enumeration-value }
    
    Gerçek değeri (bu durumda bir `str`) `model_name.value` ile veya genel olarak `your_enum_member.value` ile alabilirsiniz:
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *}
    
    /// tip | İpucu
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  6. docs/ko/docs/advanced/additional-responses.md

        "second old key": "second old value",
        "new key": "new value",
    }
    ```
    
    이 기법을 사용해 *경로 처리*에서 일부 미리 정의된 응답을 재사용하고, 추가 커스텀 응답과 결합할 수 있습니다.
    
    예를 들어:
    
    {* ../../docs_src/additional_responses/tutorial004_py310.py hl[11:15,24] *}
    
    ## OpenAPI 응답에 대한 추가 정보 { #more-information-about-openapi-responses }
    
    응답에 정확히 무엇을 포함할 수 있는지 보려면, OpenAPI 사양의 다음 섹션을 확인하세요:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial004_py310", marks=needs_py310),
            pytest.param("tutorial004_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. docs/de/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002_py310.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    Nimmt Text oder Bytes entgegen und gibt eine HTML-Response zurück, wie Sie oben gelesen haben.
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    Nimmt Text oder Bytes entgegen und gibt eine Plain-Text-Response zurück.
    
    {* ../../docs_src/custom_response/tutorial005_py310.py hl[2,7,9] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  9. docs/zh/docs/tutorial/extra-models.md

    同样地,你可以声明由对象列表构成的响应。
    
    为此,请使用标准的 Python `list`:
    
    {* ../../docs_src/extra_models/tutorial004_py310.py hl[18] *}
    
    ## 任意 `dict` 的响应 { #response-with-arbitrary-dict }
    
    你也可以使用普通的任意 `dict` 来声明响应,只需声明键和值的类型,无需使用 Pydantic 模型。
    
    如果你事先不知道有效的字段/属性名(Pydantic 模型需要预先知道字段)时,这很有用。
    
    此时,可以使用 `dict`:
    
    {* ../../docs_src/extra_models/tutorial005_py310.py hl[6] *}
    
    ## 小结 { #recap }
    
    针对不同场景,可以随意使用不同的 Pydantic 模型并通过继承复用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  10. docs/es/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py310.py hl[1] *}
    
    Porque el editor conoce los tipos de las variables, no solo obtienes autocompletado, también obtienes chequeo de errores:
    
    <img src="/img/python-types/image04.png">
    
    Ahora sabes que debes corregirlo, convertir `age` a un string con `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
Back to Top