Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 61 for johndoe (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 包含路径的路径参数 { #path-parameters-containing-paths }
    
    假设路径操作的路径为 `/files/{file_path}`。
    
    但需要 `file_path` 中也包含路径,比如,`home/johndoe/myfile.txt`。
    
    此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支持 { #openapi-support }
    
    OpenAPI 不支持声明包含路径的路径参数,因为这会导致测试和定义更加困难。
    
    不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。
    
    而且不影响文档正常运行,但是不会添加该参数包含路径的说明。
    
    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)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

    Now use the operation `GET` with the path `/users/me`.
    
    You will get your user's data, like:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "johndoe@example.com",
      "full_name": "John Doe",
      "disabled": false,
      "hashed_password": "fakehashedsecret"
    }
    ```
    
    <img src="/img/tutorial/security/image06.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  3. docs/ja/docs/tutorial/path-params.md

    }
    ```
    
    ## パスを含んだパスパラメータ { #path-parameters-containing-paths }
    
    パス `/files/{file_path}` となる *path operation* を持っているとしましょう。
    
    ただし、 `home/johndoe/myfile.txt` のような*パス*を含んだ `file_path` が必要です。
    
    したがって、そのファイルのURLは `/files/home/johndoe/myfile.txt` の様になります。
    
    ### OpenAPIサポート { #openapi-support }
    
    OpenAPIはテストや定義が困難なシナリオにつながる可能性があるため、内部に*パス*を含む*パスパラメータ*の宣言をサポートしていません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/security/simple-oauth2.md

    點選「Authorize」按鈕。
    
    使用下列帳密:
    
    User: `johndoe`
    
    Password: `secret`
    
    <img src="/img/tutorial/security/image04.png">
    
    在系統中完成驗證後,你會看到如下畫面:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### 取得自己的使用者資料 { #get-your-own-user-data }
    
    現在使用 `GET` 方法呼叫路徑 `/users/me`。
    
    你會取得自己的使用者資料,如:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "johndoe@example.com",
      "full_name": "John Doe",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/security/simple-oauth2.md

    点击“Authorize”按钮。
    
    使用以下凭证:
    
    用户名:`johndoe`
    
    密码:`secret`
    
    <img src="/img/tutorial/security/image04.png">
    
    通过身份验证后,显示下图所示的内容:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### 获取当前用户数据 { #get-your-own-user-data }
    
    使用 `/users/me` 路径的 `GET` 操作。
    
    可以提取如下当前用户数据:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "johndoe@example.com",
      "full_name": "John Doe",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 9K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/security/simple-oauth2.md

    「Authorize」ボタンをクリックします。
    
    次の認証情報を使います:
    
    User: `johndoe`
    
    Password: `secret`
    
    <img src="/img/tutorial/security/image04.png">
    
    システムで認証されると、次のように表示されます:
    
    <img src="/img/tutorial/security/image05.png">
    
    ### 自分のユーザーデータを取得 { #get-your-own-user-data }
    
    `GET` の path `/users/me` を使います。
    
    次のようなユーザーデータが取得できます:
    
    ```JSON
    {
      "username": "johndoe",
      "email": "******@****.***",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  7. fastapi/.agents/skills/fastapi/SKILL.md

    ```python
    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_current_user():
        return {"username": "johndoe"}
    
    
    CurrentUserDep = Annotated[dict, Depends(get_current_user)]
    
    
    @app.get("/items/")
    async def read_item(current_user: CurrentUserDep):
        return {"message": "Hello World"}
    ```
    
    instead of:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_body_multiple_params/test_tutorial002.py

                },
                "user": {"username": "johndoe", "full_name": "John Doe"},
            },
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 5,
            "item": {
                "name": "Foo",
                "price": 50.5,
                "description": "Some Foo",
                "tax": 0.1,
            },
            "user": {"username": "johndoe", "full_name": "John Doe"},
        }
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  9. docs/pt/docs/advanced/security/http-basic-auth.md

    E eles enviam uma requisição com um usuário `johndoe` e uma senha `love123`.
    
    Então o código Python em sua aplicação seria equivalente a algo como:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  10. docs/tr/docs/advanced/security/http-basic-auth.md

    Bazı saldırganların kullanıcı adı ve şifreyi tahmin etmeye çalıştığını düşünelim.
    
    Ve `johndoe` kullanıcı adı ve `love123` şifresi ile bir request gönderiyorlar.
    
    Uygulamanızdaki Python kodu o zaman kabaca şuna denk olur:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 5.5K bytes
    - Click Count (0)
Back to Top