- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 243 for userid (0.04 sec)
-
docs/ja/docs/tutorial/extra-models.md
### `**user_in.dict()`について #### Pydanticの`.dict()` `user_in`は`UserIn`クラスのPydanticモデルです。 Pydanticモデルには、モデルのデータを含む`dict`を返す`.dict()`メソッドがあります。 そこで、以下のようなPydanticオブジェクト`user_in`を作成すると: ```Python user_in = UserIn(username="john", password="secret", email="******@****.***") ``` そして呼び出すと: ```Python user_dict = user_in.dict() ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.6K bytes - Viewed (0) -
tests/tests_all.sh
go install github.com/microsoft/go-sqlcmd/cmd/sqlcmd@latest || true for query in \ "IF DB_ID('gorm') IS NULL CREATE DATABASE gorm" \ "IF SUSER_ID (N'gorm') IS NULL CREATE LOGIN gorm WITH PASSWORD = 'LoremIpsum86';" \ "IF USER_ID (N'gorm') IS NULL CREATE USER gorm FROM LOGIN gorm; ALTER SERVER ROLE sysadmin ADD MEMBER [gorm];" do SQLCMDPASSWORD=LoremIpsum86 sqlcmd -U sa -S localhost:9930 -Q "$query" > /dev/null || trueRegistered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 1.6K bytes - Viewed (0) -
tests/test_security_scopes_sub_dependency.py
"current_user": { "user": "user_1", "scopes": ["me"], "db_session": "db_session_1", }, }, "user_items": { "user_items": "user_items_1", "user_me": { "user_me": "user_me_2", "current_user": { "user": "user_2", "scopes": ["items", "me"],
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.9K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
`BaseUser` has the base fields. Then `UserIn` inherits from `BaseUser` and adds the `password` field, so, it will include all the fields from both models. We annotate the function return type as `BaseUser`, but we are actually returning a `UserIn` instance.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 15.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/response-model.md
`BaseUser` tem os campos base. Então `UserIn` herda de `BaseUser` e adiciona o campo `password`, então, ele incluirá todos os campos de ambos os modelos. Anotamos o tipo de retorno da função como `BaseUser`, mas na verdade estamos retornando uma instância `UserIn`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.3K bytes - Viewed (0) -
tests/test_infer_param_optionality.py
@user_router.get("/") def get_users(): return [{"user_id": "u1"}, {"user_id": "u2"}] @user_router.get("/{user_id}") def get_user(user_id: str): return {"user_id": user_id} @item_router.get("/") def get_items(user_id: Optional[str] = None): if user_id is None: return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}] else:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 12.1K bytes - Viewed (0) -
tests/test_tutorial/test_path_params/test_tutorial003.py
client = TestClient(app) @pytest.mark.parametrize( ("user_id", "expected_response"), [ ("me", {"user_id": "the current user"}), ("alice", {"user_id": "alice"}), ], ) def test_get_users(user_id: str, expected_response: dict): response = client.get(f"/users/{user_id}") assert response.status_code == 200, response.text assert response.json() == expected_response
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.6K bytes - Viewed (0) -
tests/test_route_scope.py
from fastapi.routing import APIRoute, APIWebSocketRoute from fastapi.testclient import TestClient app = FastAPI() @app.get("/users/{user_id}") async def get_user(user_id: str, request: Request): route: APIRoute = request.scope["route"] return {"user_id": user_id, "path": route.path} @app.websocket("/items/{item_id}") async def websocket_item(item_id: str, websocket: WebSocket):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 03:29:38 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/user/cbean/ca/bs/BsUserCA.java
*/ package org.codelibs.fess.opensearch.user.cbean.ca.bs; import org.codelibs.fess.opensearch.user.allcommon.EsAbstractConditionAggregation; import org.codelibs.fess.opensearch.user.allcommon.EsAbstractConditionQuery; import org.codelibs.fess.opensearch.user.cbean.ca.UserCA; import org.codelibs.fess.opensearch.user.cbean.cq.UserCQ; import org.codelibs.fess.opensearch.user.cbean.cq.bs.BsUserCQ;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 212.5K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
```JSON { "detail": "Not authenticated" } ``` ### Inactive user { #inactive-user } Now try with an inactive user, authenticate with: User: `alice` Password: `secret2` And try to use the operation `GET` with the path `/users/me`. You will get an "Inactive user" error, like: ```JSON { "detail": "Inactive user" } ``` ## Recap { #recap }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0)