Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 233 for ME (0.01 sec)

  1. tests/test_tutorial/test_bigger_applications/test_main.py

            ]
        }
    
    
    def test_users_me_token_jessica(client: TestClient):
        response = client.get("/users/me?token=jessica")
        assert response.status_code == 200
        assert response.json() == {"username": "fakecurrentuser"}
    
    
    def test_users_me_with_no_token(client: TestClient):
        response = client.get("/users/me")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  2. 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` 参数。
    
    ## 预设值
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 15 16:43:19 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/path-params.md

    Como `/users/me`, digamos que seja para obter dados sobre o usuário atual.
    
    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}`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/question.md

    ---
    name: Questions
    about: See discuss.codelibs.org
    title: 'DO NOT CREATE ME'
    labels: ''
    assignees: ''
    
    ---
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri May 15 12:05:24 UTC 2020
    - 183 bytes
    - Viewed (0)
  5. src/main/resources/fess_indices/fess/nl/stopwords.txt

    zou
    of
    wat
    mijn
    men
    dit
    zo
    door
    over
    ze
    zich
    bij
    ook
    tot
    je
    mij
    uit
    der
    daar
    haar
    naar
    heb
    hoe
    heeft
    hebben
    deze
    u
    want
    nog
    zal
    me
    zij
    nu
    ge
    geen
    omdat
    iets
    worden
    toch
    al
    waren
    veel
    meer
    doen
    toen
    moet
    ben
    zonder
    kan
    hun
    dus
    alles
    onder
    ja
    eens
    hier
    wie
    werd
    altijd
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 27 12:59:36 UTC 2023
    - 592 bytes
    - Viewed (0)
  6. .github/ISSUE_TEMPLATE/privileged.yml

      - type: checkboxes
        id: privileged
        attributes:
          label: Privileged issue
          description: Confirm that you are allowed to create an issue here.
          options:
            - label: I'm @tiangolo or he asked me directly to create an issue here.
              required: true
      - type: textarea
        id: content
        attributes:
          label: Issue Content
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 888 bytes
    - Viewed (1)
  7. src/main/resources/fess_indices/fess/en-ie/stopwords.txt

    dár
    dó
    faoi
    faoin
    faoina
    faoinár
    fara
    fiche
    gach
    gan
    go
    gur
    haon
    hocht
    i
    iad
    idir
    in
    ina
    ins
    inár
    is
    le
    leis
    lena
    lenár
    m'
    mar
    mo
    
    na
    nach
    naoi
    naonúr
    ná
    ní
    níor
    nó
    nócha
    ocht
    ochtar
    os
    roimh
    sa
    seacht
    seachtar
    seachtó
    seasca
    seisear
    siad
    sibh
    sinn
    sna
    sé
    sí
    tar
    thar
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 19 06:31:02 UTC 2018
    - 685 bytes
    - Viewed (0)
  8. docs_src/security/tutorial006_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: Annotated[HTTPBasicCredentials, Depends(security)]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 361 bytes
    - Viewed (0)
  9. docs_src/security/tutorial006_py39.py

    from fastapi import Depends, FastAPI
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 321 bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial008e_an_py39.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: Annotated[str, Depends(get_username, scope="function")]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 03 10:12:49 UTC 2025
    - 329 bytes
    - Viewed (0)
Back to top