- Sort Score
- Num 10 results
- Language All
Results 431 - 440 of 502 for tutorial001_an_py310 (0.12 seconds)
-
docs/zh/docs/tutorial/security/simple-oauth2.md
接下来,使用 **FastAPI** 工具获取用户名与密码。 ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform } 首先,导入 `OAuth2PasswordRequestForm`,然后,在 `/token` *路径操作* 中,用 `Depends` 把该类作为依赖项。 {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *} `OAuth2PasswordRequestForm` 是用以下几项内容声明表单请求体的类依赖项: * `username` * `password` * 可选的 `scope` 字段,由多个空格分隔的字符串组成的长字符串 * 可选的 `grant_type` /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 9K bytes - Click Count (0) -
docs/tr/docs/tutorial/security/oauth2-jwt.md
Token geçersizse, hemen bir HTTP hatası döndürün. {* ../../docs_src/security/tutorial004_an_py310.py hl[93:110] *} ## `/token` *path operation*'ını güncelleme { #update-the-token-path-operation } Token'ın süre sonu için bir `timedelta` oluşturun. Gerçek bir JWT access token üretip döndürün. {* ../../docs_src/security/tutorial004_an_py310.py hl[121:136] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 12.1K bytes - Click Count (0) -
docs/tr/docs/tutorial/dependencies/sub-dependencies.md
Bunları çözme işini **FastAPI** üstlenir. ## İlk bağımlılık "dependable" { #first-dependency-dependable } Şöyle bir ilk bağımlılık ("dependable") oluşturabilirsiniz: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Burada `q` adında opsiyonel bir query parametresi `str` olarak tanımlanır ve sonra doğrudan geri döndürülür.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:41:38 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/simple-oauth2.md
現在用 **FastAPI** 提供的工具來處理。 ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform } 先匯入 `OAuth2PasswordRequestForm`,並在 `/token` 的路徑操作中,搭配 `Depends` 當作依賴使用: {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *} `OAuth2PasswordRequestForm` 是一個類別型依賴,它宣告了一個表單本文,包含: - `username` - `password` - 可選的 `scope` 欄位,內容是一個由空白分隔的長字串 - 可選的 `grant_type` /// tipCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 9.1K bytes - Click Count (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 13.4K bytes - Click Count (0) -
docs/ru/docs/tutorial/dependencies/sub-dependencies.md
**FastAPI** сам займётся их управлением. ## Первая зависимость { #first-dependency-dependable } Можно создать первую зависимость следующим образом: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Она объявляет необязательный параметр запроса `q` как строку, а затем возвращает его. Это довольно просто (хотя и не очень полезно), но поможет нам сосредоточиться на том, как работают подзависимости.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 19:57:34 GMT 2026 - 6.4K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform } 먼저 `OAuth2PasswordRequestForm`을 가져와 `/token`에 대한 *경로 처리*에서 `Depends`의 의존성으로 사용합니다. {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *} `OAuth2PasswordRequestForm`은 다음을 사용하여 폼 본문을 선언하는 클래스 의존성입니다: * `username`. * `password`. * `scope`는 선택적인 필드로 공백으로 구분된 문자열로 구성된 큰 문자열입니다. * `grant_type`(선택적으로 사용). /// tip | 팁Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 11.1K bytes - Click Count (0) -
docs/fr/docs/tutorial/dependencies/sub-dependencies.md
**FastAPI** se chargera de les résoudre. ## Créer une première dépendance « dependable » { #first-dependency-dependable } Vous pouvez créer une première dépendance (« dependable ») comme : {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Elle déclare un paramètre de requête optionnel `q` de type `str`, puis le retourne simplement.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:12:41 GMT 2026 - 4.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/sub-dependencies.md
## Primeira dependência "dependable" { #first-dependency-dependable } Você pode criar uma primeira dependência ("dependable") dessa forma: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} Esse código declara um parâmetro de consulta opcional, `q`, com o tipo `str`, e então retorna esse parâmetro.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
### 의존성 요구사항 { #dependency-requirements } (헤더같은) 요청 요구사항이나 하위-의존성을 선언할 수 있습니다: {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[8,13] *} ### 오류 발생시키기 { #raise-exceptions } 다음 의존성은 기존 의존성과 동일하게 예외를 `raise`할 수 있습니다: {* ../../docs_src/dependencies/tutorial006_an_py310.py hl[10,15] *} ### 값 반환하기 { #return-values } 값을 반환하거나, 그러지 않을 수 있으며 값은 사용되지 않습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 3.4K bytes - Click Count (0)