- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 849 for Tutorial (0.05 seconds)
-
docs/zh-hant/docs/advanced/custom-response.md
若你使用的回應類別沒有 media type,FastAPI 會假設你的回應沒有內容,因此不會在產生的 OpenAPI 文件中記錄回應格式。 /// ## JSON 回應 { #json-responses } FastAPI 預設回傳 JSON 回應。 如果你宣告了[回應模型](../tutorial/response-model.md),FastAPI 會使用 Pydantic 將資料序列化為 JSON。 如果你沒有宣告回應模型,FastAPI 會使用在[JSON 相容編碼器](../tutorial/encoder.md)中解釋的 `jsonable_encoder`,並將結果放進 `JSONResponse`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.3K bytes - Click Count (0) -
docs/ja/docs/tutorial/path-operation-configuration.md
/// <img src="/img/tutorial/path-operation-configuration/image03.png"> ## *path operation*を非推奨にする { #deprecate-a-path-operation } *path operation*を<dfn title="非推奨、使用しないことを推奨">deprecated</dfn>としてマークする必要があるが、それを削除しない場合は、`deprecated`パラメータを渡します: {* ../../docs_src/path_operation_configuration/tutorial006_py310.py hl[16] *} 対話的ドキュメントでは非推奨と明記されます: <img src="/img/tutorial/path-operation-configuration/image04.png">
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/en/docs/python-types.md
This might all sound abstract. Don't worry. You'll see all this in action in the [Tutorial - User Guide](tutorial/index.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
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
docs/en/docs/how-to/configure-swagger-ui.md
Without changing the settings, syntax highlighting is enabled by default: <img src="/img/tutorial/extending-openapi/image02.png"> But you can disable it by setting `syntaxHighlight` to `False`: {* ../../docs_src/configure_swagger_ui/tutorial001_py310.py hl[3] *} ...and then Swagger UI won't show the syntax highlighting anymore: <img src="/img/tutorial/extending-openapi/image03.png"> ## Change the Theme { #change-the-theme }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.8K bytes - Click Count (0) -
docs/en/docs/how-to/index.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 582 bytes - Click Count (0) -
docs/zh/docs/advanced/websockets.md
在浏览器中打开 [http://127.0.0.1:8000](http://127.0.0.1:8000)。 您将看到一个简单的页面,如下所示: <img src="/img/tutorial/websockets/image01.png"> 您可以在输入框中输入消息并发送: <img src="/img/tutorial/websockets/image02.png"> 您的 **FastAPI** 应用程序将通过 WebSockets 回复: <img src="/img/tutorial/websockets/image03.png"> 您可以发送(和接收)多条消息: <img src="/img/tutorial/websockets/image04.png"> 所有这些消息都将使用同一个 WebSocket 连接。
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 5.4K bytes - Click Count (0) -
docs/ja/docs/advanced/generate-clients.md
これでクライアントコードを import して利用できます。例えば次のようになり、メソッドに対して補完が効きます: <img src="/img/tutorial/generate-clients/image02.png"> 送信するペイロードにも補完が適用されます: <img src="/img/tutorial/generate-clients/image03.png"> /// tip | 豆知識 FastAPI アプリの `Item` モデルで定義した `name` と `price` に補完が効いている点に注目してください。 /// 送信データに対するインラインエラーも表示されます: <img src="/img/tutorial/generate-clients/image04.png"> レスポンスオブジェクトにも補完があります:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/en/docs/reference/staticfiles.md
# Static Files - `StaticFiles` You can use the `StaticFiles` class to serve static files, like JavaScript, CSS, images, etc. Read more about it in the [FastAPI docs for Static Files](https://fastapi.tiangolo.com/tutorial/static-files/). You can import it directly from `fastapi.staticfiles`: ```python from fastapi.staticfiles import StaticFiles ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 391 bytes - Click Count (0) -
fastapi/exceptions.py
This is for client errors, invalid authentication, invalid data, etc. Not for server errors in your code. Read more about it in the [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/). ## Example ```python from fastapi import FastAPI, HTTPException app = FastAPI() items = {"foo": "The Foo Wrestlers"} @app.get("/items/{item_id}")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 7.3K bytes - Click Count (0) -
docs/zh/docs/how-to/configure-swagger-ui.md
比如,你可以禁用 Swagger UI 中的语法高亮。 当没有改变设置时,语法高亮默认启用: <img src="/img/tutorial/extending-openapi/image02.png"> 但是你可以通过设置 `syntaxHighlight` 为 `False` 来禁用 Swagger UI 中的语法高亮: {* ../../docs_src/configure_swagger_ui/tutorial001_py310.py hl[3] *} ...在此之后,Swagger UI 将不会高亮代码: <img src="/img/tutorial/extending-openapi/image03.png"> ## 改变主题 { #change-the-theme }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 2.7K bytes - Click Count (0)