Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 375 for Dict (0.02 seconds)

  1. docs/de/llm-prompt.md

    * «the default value»: «der Defaultwert»
    * «the default value»: NOT «der Standardwert»
    * «the default declaration»: «die Default-Deklaration»
    * «the deployment»: «das Deployment»
    * «the dict»: «das Dict»
    * «the dictionary»: «das Dictionary»
    * «the enumeration»: «die Enumeration»
    * «the enum»: «das Enum»
    * «the engine»: «die Engine»
    * «the error response»: «die Error-Response»
    * «the event»: «das Event»
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 09:39:53 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. docs/ko/docs/tutorial/response-model.md

    * OpenAPI *경로 작동*의 응답에 JSON 스키마 추가.
    * 자동 생성 문서 시스템에 사용.
    
    하지만 가장 중요한 것은:
    
    * 해당 모델의 출력 데이터 제한. 이것이 얼마나 중요한지 아래에서 볼 것입니다.
    
    /// note | 기술 세부사항
    
    응답 모델은 함수의 타입 어노테이션 대신 이 매개변수로 선언하는데, 경로 함수가 실제 응답 모델을 반환하지 않고 `dict`, 데이터베이스 객체나 기타 다른 모델을 `response_model`을 사용하여 필드 제한과 직렬화를 수행하고 반환할 수 있기 때문입니다
    
    ///
    
    ## 동일한 입력 데이터 반환
    
    여기서 우리는 평문 비밀번호를 포함하는 `UserIn` 모델을 선언합니다:
    
    {* ../../docs_src/response_model/tutorial002.py hl[9,11] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 7.9K bytes
    - Click Count (0)
  3. tests/test_union_body_discriminator.py

            Field(discriminator="value"),
        ]
    
        @app.post("/items/")
        def save_union_body_discriminator(
            item: Item, q: Annotated[str, Field(description="Query string")]
        ) -> dict[str, Any]:
            return {"item": item}
    
        client = TestClient(app)
        response = client.post("/items/?q=first", json={"value": "first", "price": 100})
        assert response.status_code == 200, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/response-cookies.md

    # 응답 쿠키
    
    ## `Response` 매개변수 사용하기
    
    *경로 작동 함수*에서 `Response` 타입의 매개변수를 선언할 수 있습니다.
    
    그런 다음 해당 *임시* 응답 객체에서 쿠키를 설정할 수 있습니다.
    
    {* ../../docs_src/response_cookies/tutorial002.py hl[1,8:9] *}
    
    그런 다음 필요한 객체(`dict`, 데이터베이스 모델 등)를 반환할 수 있습니다.
    
    그리고 `response_model`을 선언했다면 반환한 객체를 거르고 변환하는 데 여전히 사용됩니다.
    
    **FastAPI**는 그 *임시* 응답에서 쿠키(또한 헤더 및 상태 코드)를 추출하고, 반환된 값이 포함된 최종 응답에 이를 넣습니다. 이 값은 `response_model`로 걸러지게 됩니다.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. docs/zh-hant/llm-prompt.md

    1. Should avoid using simplified Chinese characters and terms. Always examine if the translation can be easily comprehended by the Traditional Chinese readers.
    2. For some Python-specific terms like "pickle", "list", "dict" etc, we don't have to translate them.
    3. Use the following preferred translations when they apply in documentation prose:
    
    - request (HTTP): 請求
    - response (HTTP): 回應
    - path operation: 路徑操作
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:49:46 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/response-cookies.md

    And then you can set cookies in that *temporal* response object.
    
    {* ../../docs_src/response_cookies/tutorial002_py39.py hl[1, 8:9] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  7. tests/test_compat.py

                arbitrary_types_allowed=True,
            )
            value: Union[str, Missing] = Missing()
            embedded_model: EmbeddedModel = EmbeddedModel()
    
        @app.post("/")
        def foo(req: Model) -> dict[str, Union[str, None]]:
            return {
                "value": req.value or None,
                "embedded_value": req.embedded_model.value or None,
            }
    
        client = TestClient(app)
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. docs/ru/docs/advanced/response-headers.md

    А затем вы можете устанавливать HTTP-заголовки в этом *временном* объекте ответа.
    
    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    После этого вы можете вернуть любой нужный объект, как обычно (например, `dict`, модель из базы данных и т.д.).
    
    И, если вы объявили `response_model`, он всё равно будет использован для фильтрации и преобразования возвращённого объекта.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. docs/de/docs/advanced/response-headers.md

    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    Anschließend können Sie wie gewohnt jedes gewünschte Objekt zurückgeben (ein `dict`, ein Datenbankmodell, usw.).
    
    Und wenn Sie ein `response_model` deklariert haben, wird es weiterhin zum Filtern und Konvertieren des von Ihnen zurückgegebenen Objekts verwendet.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.8K bytes
    - Click Count (2)
  10. docs/en/docs/advanced/response-headers.md

    And then you can set headers in that *temporal* response object.
    
    {* ../../docs_src/response_headers/tutorial002_py39.py hl[1, 7:8] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top