- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for 65 (0.13 sec)
-
docs/de/docs/advanced/security/oauth2-scopes.md
Der `scopes`-Parameter erhält ein `dict` mit jedem Scope als Schlüssel und dessen Beschreibung als Wert: === "Python 3.10+" ```Python hl_lines="62-65" {!> ../../../docs_src/security/tutorial005_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="62-65" {!> ../../../docs_src/security/tutorial005_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="63-66"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:08 GMT 2024 - 22.8K bytes - Viewed (0) -
docs/zh/docs/advanced/async-sql-databases.md
### 注意 `response_model=List[Note]` `response_model=List[Note]` 使用的是 `typing.List`。 它以笔记(`Note`)列表的形式存档(及验证、序列化、筛选)输出的数据。 ## 创建笔记 创建新建笔记的*路径操作函数*: ```Python hl_lines="61-65" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! Note "笔记" 注意,本例与数据库通信时使用 `await`,因此要把*路径操作函数*声明为异步函数(`asnyc`)。 ### 关于 `{**note.dict(), "id": last_record_id}`
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:44:40 GMT 2024 - 4.3K bytes - Viewed (0) -
docs/en/docs/how-to/async-sql-encode-databases.md
That documents (and validates, serializes, filters) the output data, as a `list` of `Note`s. ## Create notes Create the *path operation function* to create notes: ```Python hl_lines="61-65" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! info In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/zh/docs/advanced/security/oauth2-scopes.md
{!../../../docs_src/security/tutorial005.py!} ``` 下面,我们逐步说明修改的代码内容。 ## OAuth2 安全方案 第一个修改的地方是,使用两个作用域 `me` 和 `items ` 声明 OAuth2 安全方案。 `scopes` 参数接收**字典**,键是作用域、值是作用域的描述: ```Python hl_lines="62-65" {!../../../docs_src/security/tutorial005.py!} ``` 因为声明了作用域,所以登录或授权时会在 API 文档中显示。 此处,选择给予访问权限的作用域: `me` 和 `items`。 这也是使用脸书、谷歌、GitHub 登录时的授权机制。 <img src="/img/tutorial/security/image11.png">
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:43:35 GMT 2024 - 11.8K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* Trigger Docker images build on Travis CI automatically. PR [#65](https://github.com/tiangolo/fastapi/pull/65). ## 0.7.0 * Add support for `UploadFile` in `File` parameter annotations. * This includes a file-like interface.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1)