- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 247 for user_2 (0.04 seconds)
-
docs/tr/docs/features.md
# Bir değişkeni str olarak belirt # ve fonksiyon içinde editör desteği al def main(user_id: str): return user_id # Bir Pydantic modeli class User(BaseModel): id: int name: str joined: date ``` Sonra şöyle kullanabilirsiniz: ```Python my_user: User = User(id=3, name="John Doe", joined="2018-07-19") second_user_data = { "id": 4, "name": "Mary",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.1K bytes - Click Count (0) -
docs/tr/docs/tutorial/dependencies/index.md
Örneğin, 4 API endpoint'iniz (*path operation*) olduğunu varsayalım: * `/items/public/` * `/items/private/` * `/users/{user_id}/activate` * `/items/pro/` O zaman her biri için farklı izin gereksinimlerini yalnızca dependency'ler ve alt dependency'lerle ekleyebilirsiniz: ```mermaid graph TB current_user(["current_user"])
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.2K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 15.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
return mac.doFinal(data); } /** * Returns the user's Kerberos realm. * * @return the user realm */ public String getUserRealm() { return this.userRealm; } /** * Returns the user's principal name. * * @return the user principal name */ public String getUserPrincipalName() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.5K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/index.md
Por exemplo, vamos supor que você possua 4 endpoints na sua API (*operações de rota*): * `/items/public/` * `/items/private/` * `/users/{user_id}/activate` * `/items/pro/` Você poderia adicionar diferentes requisitos de permissão para cada um deles utilizando apenas dependências e sub-dependências: ```mermaid graph TB
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 10.6K bytes - Click Count (0) -
docs/en/docs/advanced/strict-content-type.md
* The browser thinks it's not sending JSON (because of the missing `Content-Type` header). Then the malicious website could make the local AI agent send angry messages to the user's ex-boss... or worse. 😅 ## Open Internet { #open-internet } If your app is in the open internet, you wouldn't "trust the network" and let anyone send privileged requests without authentication.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Feb 23 17:45:20 GMT 2026 - 3.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/dependencies/index.md
* `/items/public/` * `/items/private/` * `/users/{user_id}/activate` * `/items/pro/` 你可以仅通过依赖项及其子依赖项为它们添加不同的权限要求: ```mermaid graph TB current_user(["current_user"]) active_user(["active_user"]) admin_user(["admin_user"]) paying_user(["paying_user"]) public["/items/public/"] private["/items/private/"] activate_user["/users/{user_id}/activate"] pro_items["/items/pro/"]Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
docs/es/docs/tutorial/security/get-current-user.md
## Obtener el usuario { #get-the-user } `get_current_user` usará una función de utilidad (falsa) que creamos, que toma un token como un `str` y devuelve nuestro modelo de Pydantic `User`: {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## Inyectar al usuario actual { #inject-the-current-user }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:41:41 GMT 2026 - 4.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *} ## 現在のユーザーの注入 { #inject-the-current-user } ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。 {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *} Pydanticモデルの `User` として、 `current_user` の型を宣言することに注意してください。 その関数の中ですべての入力補完や型チェックを行う際に役に立ちます。 /// tip | 豆知識Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 15:24:30 GMT 2026 - 5.7K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/security/get-current-user.md
# 取得目前使用者 { #get-current-user } 在前一章,基於依賴注入系統的安全機制會把一個 `token`(作為 `str`)提供給*路徑操作函式*: {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *} 但這還不太有用。 讓它改為回傳目前使用者吧。 ## 建立使用者模型 { #create-a-user-model } 先建立一個 Pydantic 的使用者模型。 就像用 Pydantic 宣告請求體一樣,我們也可以在其他地方使用它: {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *} ## 建立 `get_current_user` 依賴 { #create-a-get-current-user-dependency }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 3.7K bytes - Click Count (0)