- Sort Score
- Num 10 results
- Language All
Results 441 - 450 of 3,506 for user (0.06 seconds)
-
docs_src/extra_models/tutorial002_py310.py
def fake_save_user(user_in: UserIn): hashed_password = fake_password_hasher(user_in.password) user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password) print("User saved! ..not really") return user_in_db @app.post("/user/", response_model=UserOut) async def create_user(user_in: UserIn): user_saved = fake_save_user(user_in)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 798 bytes - Click Count (0) -
scripts/people.py
logging.info("The data hasn't changed, finishing.") return logging.info("Setting up GitHub Actions git user") subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True) subprocess.run( ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"], check=True, ) branch_name = f"fastapi-people-experts-{secrets.token_hex(4)}"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:51:24 GMT 2026 - 15K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmClientManager.java
} /** * Evaluates search results for relevance using the configured LLM client. * * @param userMessage the original user message * @param query the search query used * @param searchResults the search results to evaluate * @return evaluation result with relevant document IDs * @throws LlmException if LLM is not available */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 11:10:51 GMT 2026 - 17.4K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/body-multiple-params.md
} ``` 但你也可以宣告多個 Body 參數,例如 `item` 與 `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} 在此情況下,**FastAPI** 會注意到函式中有多個 Body 參數(有兩個參數是 Pydantic 模型)。 因此,它會使用參數名稱作為 body 中的鍵(欄位名稱),並期望如下的主體: ```JSON { "item": { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 }, "user": { "username": "dave",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 4.6K bytes - Click Count (0) -
tests/test_forms_single_model.py
class FormModelExtraAllow(BaseModel): param: str model_config = {"extra": "allow"} @app.post("/form/") def post_form(user: Annotated[FormModel, Form()]): return user @app.post("/form-extra-allow/") def post_form_extra_allow(params: Annotated[FormModelExtraAllow, Form()]): return params client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 3.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt
import okhttp3.internal.EmptyTags class RequestCommonTest { @Test fun constructorNormal() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val method = "PUT" val request = Request( url = url, headers = headers, method = method, body = body, )Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 11K bytes - Click Count (0) -
schema/index_test.go
} type CompIdxLevel2B struct { Data2B string `gorm:"index:,unique,composite:comp_id2,priority:3"` } func TestParseIndex(t *testing.T) { user, err := schema.Parse(&UserIndex{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user index, got error %v", err) } results := []*schema.Index{ { Name: "idx_user_indices_name",Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Dec 06 02:27:44 GMT 2024 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/user/SearchBody.java
*/ package org.codelibs.fess.app.web.api.admin.user; import org.codelibs.fess.app.web.api.admin.BaseSearchBody; /** * Search request body for user administration API. */ public class SearchBody extends BaseSearchBody { /** * Default constructor. */ public SearchBody() { super(); } /** User ID */ public String id;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 979 bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosTicket.java
} } /** * Returns the user principal name from the ticket. * * @return the user principal name */ public String getUserPrincipalName() { return this.encData.getUserPrincipalName(); } /** * Returns the user realm from the ticket. * * @return the user realm */ public String getUserRealm() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.7K bytes - Click Count (0) -
cmd/testdata/config/invalid-types.yaml
version: v1 address: ':9000' console-address: ':9001' certs-dir: '/home/user/.minio/certs/' pools: # Specify the nodes and drives with pools - - '/mnt/disk{1...4}/' - 'https://server1-pool1:9000/mnt/disk{1...4}/' - 'https://server3-pool1:9000/mnt/disk{1...4}/' - 'https://server4-pool1:9000/mnt/disk{1...4}/' - - 'https://server-example-pool2:9000/mnt/disk{1...4}/'Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Dec 07 09:33:56 GMT 2023 - 836 bytes - Click Count (0)