Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 574 for user_me (0.04 seconds)

  1. docs/zh/docs/tutorial/path-params.md

    下一章介绍详细内容。
    
    ## 顺序很重要
    
    有时,*路径操作*中的路径是写死的。
    
    比如要使用 `/users/me` 获取当前用户的数据。
    
    然后还要使用 `/users/{user_id}`,通过用户 ID 获取指定用户的数据。
    
    由于*路径操作*是按顺序依次运行的,因此,一定要在 `/users/{user_id}` 之前声明 `/users/me` :
    
    {* ../../docs_src/path_params/tutorial003.py hl[6,11] *}
    
    否则,`/users/{user_id}` 将匹配 `/users/me`,FastAPI 会**认为**正在接收值为 `"me"` 的 `user_id` 参数。
    
    ## 预设值
    
    路径操作使用 Python 的 <abbr title="Enumeration">`Enum`</abbr> 类型接收预设的*路径参数*。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Dec 15 16:43:19 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  2. 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_py39.py hl[6,11] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  3. docs_src/generate_clients/tutorial003_py39.py

    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class ResponseMessage(BaseModel):
        message: str
    
    
    class User(BaseModel):
        username: str
        email: str
    
    
    @app.post("/items/", response_model=ResponseMessage, tags=["items"])
    async def create_item(item: Item):
        return {"message": "Item received"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Mar 04 22:02:18 GMT 2022
    - 914 bytes
    - Click Count (0)
  4. src/main/resources/fess_indices/fess_config.file_authentication/file_authentication.json

    {
        "properties": {
          "hostname": {
            "type": "keyword"
          },
          "port": {
            "type": "integer"
          },
          "protocolScheme": {
            "type": "keyword"
          },
          "username": {
            "type": "keyword"
          },
          "password": {
            "type": "keyword"
          },
          "parameters": {
            "type": "keyword"
          },
          "fileConfigId": {
            "type": "keyword"
          },
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 02 13:14:56 GMT 2021
    - 644 bytes
    - Click Count (0)
  5. cmd/user-provider-utils.go

    package cmd
    
    import (
    	"context"
    	"strings"
    
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/auth"
    )
    
    // getUserWithProvider - returns the appropriate internal username based on the user provider.
    // if validate is true, an error is returned if the user does not exist.
    func getUserWithProvider(ctx context.Context, userProvider, user string, validate bool) (string, error) {
    	switch userProvider {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://username:@host/path"))
          .isEqualTo(parse("http://username@host/path"))
      }
    
      @Test
      fun passwordWithEmptyUsername() {
        // Chrome doesn't mind, but Firefox rejects URLs with empty usernames and non-empty passwords.
        assertThat(parse("http://:@host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http://:password@@host/path").encodedPassword)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Aug 04 07:38:48 GMT 2025
    - 69.9K bytes
    - Click Count (0)
  7. src/main/resources/fess_indices/fess_config.web_authentication/web_authentication.json

          },
          "port": {
            "type": "integer"
          },
          "authRealm": {
            "type": "keyword"
          },
          "protocolScheme": {
            "type": "keyword"
          },
          "username": {
            "type": "keyword"
          },
          "password": {
            "type": "keyword"
          },
          "parameters": {
            "type": "keyword"
          },
          "webConfigId": {
            "type": "keyword"
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Dec 02 13:14:56 GMT 2021
    - 699 bytes
    - Click Count (0)
  8. src/main/webapp/WEB-INF/view/admin/webauth/admin_webauth_details.jsp

                                            <th><la:message
                                                    key="labels.webauth_username"/></th>
                                            <td>${f:h(username)}<la:hidden property="username"/></td>
                                        </tr>
                                        <tr>
                                            <th><la:message
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 13 05:54:52 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. docs_src/response_model/tutorial003_01_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel, EmailStr
    
    app = FastAPI()
    
    
    class BaseUser(BaseModel):
        username: str
        email: EmailStr
        full_name: str | None = None
    
    
    class UserIn(BaseUser):
        password: str
    
    
    @app.post("/user/")
    async def create_user(user: UserIn) -> BaseUser:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Jan 07 13:45:48 GMT 2023
    - 317 bytes
    - Click Count (0)
  10. docs_src/response_model/tutorial002_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel, EmailStr
    
    app = FastAPI()
    
    
    class UserIn(BaseModel):
        username: str
        password: str
        email: EmailStr
        full_name: str | None = None
    
    
    # Don't do this in production!
    @app.post("/user/")
    async def create_user(user: UserIn) -> UserIn:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Jan 07 13:45:48 GMT 2023
    - 318 bytes
    - Click Count (0)
Back to Top