- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 600 for user_me (0.54 seconds)
-
docs/zh-hant/docs/tutorial/path-params.md
在建立「路徑操作」時,你可能會遇到有固定路徑的情況。 像是 `/users/me`,假設它用來取得目前使用者的資料。 然後你也可能有一個路徑 `/users/{user_id}` 用來依使用者 ID 取得特定使用者的資料。 因為「路徑操作」會依宣告順序來比對,你必須確保 `/users/me` 的路徑在 `/users/{user_id}` 之前宣告: {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *} 否則,`/users/{user_id}` 的路徑也會匹配 `/users/me`,並「認為」它收到一個值為 `"me"` 的 `user_id` 參數。 同樣地,你不能重新定義同一路徑操作: {* ../../docs_src/path_params/tutorial003b_py310.py hl[6,11] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.4K bytes - Click Count (0) -
src/main/config/es/fess_config_file_authentication.json
"type" : "keyword" }, "updatedBy" : { "type" : "keyword" }, "updatedTime" : { "type" : "long" }, "username" : { "type" : "keyword" } } } }, "settings" : { "index" : { "creation_date" : "1509021053135", "number_of_shards" : "5",
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 02 13:14:56 GMT 2021 - 1.2K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial002_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, user: User): results = {"item_id": item_id, "item": item, "user": user}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 446 bytes - Click Count (0) -
cmd/sftp-server_test.go
return []byte{} } func (m *MockConnMeta) RemoteAddr() net.Addr { return nil } func (m *MockConnMeta) LocalAddr() net.Addr { return nil } func newSSHConnMock(username string) ssh.ConnMetadata { return &MockConnMeta{username: username} } func TestSFTPAuthentication(t *testing.T) { for i, testCase := range iamTestSuites { t.Run( fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.ServerTypeDescription),
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Feb 27 18:43:32 GMT 2025 - 9.7K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial003_an_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item( item_id: int, item: Item, user: User, importance: Annotated[int, Body()] ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 550 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java
} final String username = getUserBean().get().getUserId(); try { userService.changePassword(username, form.newPassword); saveInfo(messages -> messages.addSuccessChangedPassword(GLOBAL)); } catch (final Exception e) { logger.warn("Failed to change password for {}", username, e);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 02 06:18:24 GMT 2026 - 6.3K bytes - Click Count (0) -
docs/pt/docs/tutorial/path-params.md
E então você também pode ter um path `/users/{user_id}` para obter dados sobre um usuário específico por algum ID de usuário. Como as *operações de rota* são avaliadas em ordem, você precisa garantir que o path para `/users/me` seja declarado antes do de `/users/{user_id}`: {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/zh/docs/tutorial/path-params.md
有时,*路径操作*中的路径是写死的。 比如要使用 `/users/me` 获取当前用户的数据。 然后还要使用 `/users/{user_id}`,通过用户 ID 获取指定用户的数据。 由于*路径操作*是按顺序依次运行的,因此,一定要在 `/users/{user_id}` 之前声明 `/users/me` : {* ../../docs_src/path_params/tutorial003_py310.py hl[6,11] *} 否则,`/users/{user_id}` 将匹配 `/users/me`,FastAPI 会**认为**正在接收值为 `"me"` 的 `user_id` 参数。 同样,你不能重复定义一个路径操作: {* ../../docs_src/path_params/tutorial003b_py310.py hl[6,11] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.6K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial004_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item, user: User, importance: int = Body(gt=0),
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 10 18:49:18 GMT 2023 - 603 bytes - Click Count (0) -
docs/en/docs/tutorial/security/get-current-user.md
But you are not restricted to using some specific data model, class or type. Do you want to have an `id` and `email` and not have any `username` in your model? Sure. You can use these same tools. Do you want to just have a `str`? Or just a `dict`? Or a database class model instance directly? It all works the same way.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 4K bytes - Click Count (0)