- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,603 for Response (0.11 sec)
-
docs/zh/docs/tutorial/response-model.md
因此,**FastAPI** 将会负责过滤掉未在输出模型中声明的所有数据(使用 Pydantic)。 ## 在文档中查看 当你查看自动化文档时,你可以检查输入模型和输出模型是否都具有自己的 JSON Schema: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png"> 并且两种模型都将在交互式 API 文档中使用: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png"> ## 响应模型编码参数 你的响应模型可以具有默认值,例如: ```Python hl_lines="11 13-14" {!../../docs_src/response_model/tutorial004.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
## ドキュメントを見る 自動ドキュメントを見ると、入力モデルと出力モデルがそれぞれ独自のJSON Schemaを持っていることが確認できます。 <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image01.png"> そして、両方のモデルは、対話型のAPIドキュメントに使用されます: <img src="https://fastapi.tiangolo.com/img/tutorial/response-model/image02.png"> ## レスポンスモデルのエンコーディングパラメータ レスポンスモデルにはデフォルト値を設定することができます: ```Python hl_lines="11 13 14"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/ko/docs/advanced/response-cookies.md
/// note | "기술적 세부사항" `from starlette.responses import Response` 또는 `from starlette.responses import JSONResponse`를 사용할 수도 있습니다. **FastAPI**는 개발자의 편의를 위해 `fastapi.responses`로 동일한 `starlette.responses`를 제공합니다. 그러나 대부분의 응답은 Starlette에서 직접 제공됩니다. 또한 `Response`는 헤더와 쿠키를 설정하는 데 자주 사용되므로, **FastAPI**는 이를 `fastapi.Response`로도 제공합니다. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 10:32:45 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/de/docs/advanced/response-cookies.md
/// note | "Technische Details" Sie können auch `from starlette.responses import Response` oder `from starlette.responses import JSONResponse` verwenden. **FastAPI** bietet dieselben `starlette.responses` auch via `fastapi.responses` an, als Annehmlichkeit für Sie, den Entwickler. Die meisten verfügbaren Responses kommen aber direkt von Starlette.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/pt/docs/advanced/response-cookies.md
/// note | "Detalhes Técnicos" Você também poderia usar `from starlette.responses import Response` ou `from starlette.responses import JSONResponse`. **FastAPI** fornece as mesmas `starlette.responses` em `fastapi.responses` apenas como uma conveniência para você, o desenvolvedor. Mas a maioria das respostas disponíveis vem diretamente do Starlette.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 14 09:15:24 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/pt/docs/advanced/response-headers.md
``` /// note | "Detalhes técnicos" Você também pode usar `from starlette.responses import Response` ou `from starlette.responses import JSONResponse`. **FastAPI** fornece as mesmas `starlette.responses` como `fastapi.responses` apenas como uma conveniência para você, desenvolvedor. Mas a maioria das respostas disponíveis vem diretamente do Starlette.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 16 07:44:45 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/pt/docs/advanced/response-directly.md
Pode ser útil para retornar cabeçalhos e cookies personalizados, por exemplo. ## Retornando uma `Response` Na verdade, você pode retornar qualquer `Response` ou subclasse dela. /// tip | Dica A própria `JSONResponse` é uma subclasse de `Response`. /// E quando você retorna uma `Response`, o **FastAPI** vai repassá-la diretamente.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/ja/docs/advanced/custom-response.md
デフォルトでは、**FastAPI** は `JSONResponse` を使ってレスポンスを返します。 [レスポンスを直接返す](response-directly.md){.internal-link target=_blank}で見たように、 `Response` を直接返すことでこの挙動をオーバーライドできます。 しかし、`Response` を直接返すと、データは自動的に変換されず、ドキュメントも自動生成されません (例えば、生成されるOpenAPIの一部としてHTTPヘッダー `Content-Type` に特定の「メディアタイプ」を含めるなど) 。 しかし、*path operationデコレータ* に、使いたい `Response` を宣言することもできます。 *path operation関数* から返されるコンテンツは、その `Response` に含まれます。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.6K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct. ### Annotate a Response Subclass You can also use a subclass of `Response` in the type annotation: ```Python hl_lines="8-9" {!> ../../docs_src/response_model/tutorial003_03.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/fr/docs/advanced/response-directly.md
```Python hl_lines="6-7 21-22" {!../../docs_src/response_directly/tutorial001.py!} ``` /// note | "Détails techniques" Vous pouvez aussi utiliser `from starlette.responses import JSONResponse`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.6K bytes - Viewed (0)