- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 373 for notes (0.18 sec)
-
docs/zh/docs/tutorial/body-fields.md
Prefer to use the `Annotated` version if possible. ```Python hl_lines="11-14" {!> ../../../docs_src/body_fields/tutorial001.py!} ``` `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。 !!! note "技术细节" 实际上,`Query`、`Path` 都是 `Params` 的子类,而 `Params` 类又是 Pydantic 中 `FieldInfo` 的子类。 Pydantic 的 `Field` 返回也是 `FieldInfo` 的类实例。 `Body` 直接返回的也是 `FieldInfo` 的子类的对象。后文还会介绍一些 `Body` 的子类。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 05:35:27 GMT 2024 - 3K bytes - Viewed (0) -
docs/em/docs/tutorial/handling-errors.md
✋️ ⚫️ 🔜 🍵 `unicorn_exception_handler`. , 👆 🔜 📨 🧹 ❌, ⏮️ 🇺🇸🔍 👔 📟 `418` & 🎻 🎚: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` !!! note "📡 ℹ" 👆 💪 ⚙️ `from starlette.requests import Request` & `from starlette.responses import JSONResponse`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.3K bytes - Viewed (0) -
docs/zh/docs/advanced/custom-request-and-route.md
`APIRoute.get_route_handler()` 方法返回的是函数,并且返回的函数接收请求并返回响应。 本例用它根据原始请求创建 `GzipRequest`。 ```Python hl_lines="18-26" {!../../../docs_src/custom_request_and_route/tutorial001.py!} ``` !!! note "技术细节" `Request` 的 `request.scope` 属性是包含关联请求元数据的字典。 `Request` 的 `request.receive` 方法是**接收**请求体的函数。 `scope` 字典与 `receive` 函数都是 ASGI 规范的内容。 `scope` 与 `receive` 也是创建新的 `Request` 实例所需的。
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:45:40 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/request-forms.md
## 「フォームフィールド」について HTMLフォーム(`<form></form>`)がサーバにデータを送信する方法は、通常、そのデータに「特別な」エンコーディングを使用していますが、これはJSONとは異なります。 **FastAPI** は、JSONの代わりにそのデータを適切な場所から読み込むようにします。 !!! note "技術詳細" フォームからのデータは通常、`application/x-www-form-urlencoded`の「media type」を使用してエンコードされます。 しかし、フォームがファイルを含む場合は、`multipart/form-data`としてエンコードされます。ファイルの扱いについては次の章で説明します。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 3.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
* `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * など。 ```Python hl_lines="17" {!../../../docs_src/response_model/tutorial001.py!} ``` !!! note "備考" `response_model`は「デコレータ」メソッド(`get`、`post`など)のパラメータであることに注意してください。すべてのパラメータやボディのように、*path operation関数* のパラメータではありません。 Pydanticモデルの属性に対して宣言するのと同じ型を受け取るので、Pydanticモデルになることもできますが、例えば、`List[Item]`のようなPydanticモデルの`list`になることもできます。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
fastapi/security/oauth2.py
if form_data.client_id: data["client_id"] = form_data.client_id if form_data.client_secret: data["client_secret"] = form_data.client_secret return data ``` Note that for OAuth2 the scope `items:read` is a single scope in an opaque string. You could have custom internal logic to separate it by colon caracters (`:`) or
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
docs/en/docs/alternatives.md
It was one of the first examples of **automatic API documentation**, and this was specifically one of the first ideas that inspired "the search for" **FastAPI**. !!! note Django REST Framework was created by Tom Christie. The same creator of Starlette and Uvicorn, on which **FastAPI** is based. !!! check "Inspired **FastAPI** to" Have an automatic API documentation web user interface.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
### Step 1: import `FastAPI` ```Python hl_lines="1" {!../../../docs_src/first_steps/tutorial001.py!} ``` `FastAPI` is a Python class that provides all the functionality for your API. !!! note "Technical Details" `FastAPI` is a class that inherits directly from `Starlette`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 12K bytes - Viewed (0) -
docs/ko/docs/tutorial/cors.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 07 14:21:23 GMT 2023 - 5.8K bytes - Viewed (0) -
docs/ja/docs/deployment/concepts.md
次の章では、FastAPIアプリケーションをデプロイするための**具体的なレシピ**を紹介します。 しかし、今はこれらの重要な**コンセプトに基づくアイデア**を確認しましょう。これらのコンセプトは、他のどのタイプのWeb APIにも当てはまります。💡 ## セキュリティ - HTTPS <!-- NOTE: https.md written in Japanese does not exist, so it redirects to English one --> [前チャプターのHTTPSについて](https.md){.internal-link target=_blank}では、HTTPSがどのようにAPIを暗号化するのかについて学びました。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 24.1K bytes - Viewed (0)