Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 243 for userId (0.05 seconds)

  1. docs/zh-hant/docs/tutorial/response-model.md

    這是怎麼運作的?來看一下。🤓
    
    ### 型別註解與工具支援 { #type-annotations-and-tooling }
    
    先看看編輯器、mypy 與其他工具會怎麼看這件事。
    
    `BaseUser` 有基礎欄位。然後 `UserIn` 繼承自 `BaseUser` 並新增 `password` 欄位,因此它會包含兩個模型的所有欄位。
    
    我們把函式回傳型別註解為 `BaseUser`,但實際上回傳的是 `UserIn` 實例。
    
    編輯器、mypy 與其他工具不會抱怨,因為就型別學而言,`UserIn` 是 `BaseUser` 的子類別,這代表當預期任何 `BaseUser` 時,`UserIn` 是一個有效的型別。
    
    ### FastAPI 的資料過濾 { #fastapi-data-filtering }
    
    對 FastAPI 而言,它會查看回傳型別,並確保你回傳的內容只包含該型別中宣告的欄位。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/LocalRepository.java

     * up the build process by avoiding unnecessary downloads.</p>
     *
     * <p>By default, the local repository is located in the {@code .m2/repository}
     * directory within the user's home directory ({@code ~/.m2/repository} on
     * Unix-like systems or {@code C:\Users\YourName\.m2\repository} on Windows).
     * The location of the local repository can be customized in the
     * {@code settings.xml} file.</p>
     *
     * @since 4.0.0
     * @see Repository
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Aug 27 21:13:34 GMT 2024
    - 2K bytes
    - Click Count (0)
  3. docs/fr/docs/features.md

    # Déclarez une variable comme étant une str
    # et profitez de l'aide de l'éditeur dans cette fonction
    def main(user_id: str):
        return user_id
    
    
    # Un modèle Pydantic
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Qui peuvent ensuite être utilisés comme ceci :
    
    ```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: Thu Mar 19 18:37:13 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  4. docs/es/docs/tutorial/dependencies/index.md

    Por ejemplo, digamos que tienes 4 endpoints de API (*path operations*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    entonces podrías agregar diferentes requisitos de permiso para cada uno de ellos solo con dependencias y sub-dependencias:
    
    ```mermaid
    graph TB
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 10K bytes
    - Click Count (0)
  5. .ci/os.sh

      #
      # This ultimately needs to be fixed at the image level - see infra
      # issue 15654.
      sudo mv /etc/sysctl.d/99-gce.conf /etc/sysctl.d/98-gce.conf
    fi
    
    # Required by bats
    sudo touch /etc/is_vagrant_vm
    sudo useradd vagrant
    
    set -e
    
    . .ci/java-versions.properties
    RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA
    BUILD_JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA
    
    rm -Rfv $HOME/.gradle/init.d/ && mkdir -p $HOME/.gradle/init.d
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 17 17:41:23 GMT 2021
    - 2.3K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial001_py310.py hl[7,9,14,20,22,27:28,31:33,38:39] *}
    
    ### Über `**user_in.model_dump()` { #about-user-in-model-dump }
    
    #### Pydantics `.model_dump()` { #pydantics-model-dump }
    
    `user_in` ist ein Pydantic-Modell der Klasse `UserIn`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/security/get-current-user.md

    ## Kullanıcıyı alın { #get-the-user }
    
    `get_current_user`, oluşturduğumuz (sahte) bir yardımcı (utility) fonksiyonu kullanacak; bu fonksiyon `str` olarak bir token alır ve Pydantic `User` modelimizi döndürür:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## Mevcut kullanıcıyı enjekte edin { #inject-the-current-user }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:41:38 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/security/get-current-user.md

    ## 获取用户 { #get-the-user }
    
    `get_current_user` 使用创建的(伪)工具函数,该函数接收 `str` 类型的令牌,并返回 Pydantic 的 `User` 模型:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## 注入当前用户 { #inject-the-current-user }
    
    在*路径操作* 的 `Depends` 中使用 `get_current_user`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[31] *}
    
    注意,此处把 `current_user` 的类型声明为 Pydantic 的 `User` 模型。
    
    这有助于在函数内部使用代码补全和类型检查。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/security/get-current-user.md

    # Get Current User { #get-current-user }
    
    In the previous chapter the security system (which is based on the dependency injection system) was giving the *path operation function* a `token` as a `str`:
    
    {* ../../docs_src/security/tutorial001_an_py310.py hl[12] *}
    
    But that is still not that useful.
    
    Let's make it give us the current user.
    
    ## Create a user model { #create-a-user-model }
    
    First, let's create a Pydantic user model.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 4K bytes
    - Click Count (0)
  10. docs/de/docs/tutorial/security/get-current-user.md

    ## Den Benutzer abrufen { #get-the-user }
    
    `get_current_user` wird eine von uns erstellte (gefakte) Hilfsfunktion verwenden, welche einen Token vom Typ `str` entgegennimmt und unser Pydantic-`User`-Modell zurückgibt:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## Den aktuellen Benutzer einfügen { #inject-the-current-user }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 07:57:30 GMT 2026
    - 4.8K bytes
    - Click Count (0)
Back to Top