Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 137 for johnson (0.44 sec)

  1. tests/test_security_oauth2_optional_description.py

        response = client.post(
            "/login",
            data={"username": "johndoe", "password": "secret", "grant_type": "password"},
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "grant_type": "password",
            "username": "johndoe",
            "password": "secret",
            "scopes": [],
            "client_id": None,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/path-params.md

    Disons que vous avez une *fonction de chemin* liée au chemin `/files/{file_path}`.
    
    Mais que `file_path` lui-même doit contenir un *chemin*, comme `home/johndoe/myfile.txt` par exemple.
    
    Donc, l'URL pour ce fichier pourrait être : `/files/home/johndoe/myfile.txt`.
    
    ### Support d'OpenAPI
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10K bytes
    - Viewed (0)
  3. docs_src/security/tutorial005_an.py

    SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
    ALGORITHM = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES = 30
    
    
    fake_users_db = {
        "johndoe": {
            "username": "johndoe",
            "full_name": "John Doe",
            "email": "johndoe@example.com",
            "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW",
            "disabled": False,
        },
        "alice": {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/path-params.md

    Digamos que tienes una *operación de path* con un path `/files/{file_path}`.
    
    Pero necesitas que el mismo `file_path` contenga un path como `home/johndoe/myfile.txt`.
    
    Entonces, la URL para ese archivo sería algo como: `/files/home/johndoe/myfile.txt`.
    
    ### Soporte de OpenAPI
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  5. tests/test_security_oauth2_optional.py

    
    def test_strict_login_correct_data():
        response = client.post(
            "/login",
            data={"username": "johndoe", "password": "secret", "grant_type": "password"},
        )
        assert response.status_code == 200
        assert response.json() == {
            "grant_type": "password",
            "username": "johndoe",
            "password": "secret",
            "scopes": [],
            "client_id": None,
            "client_secret": None,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  6. docs_src/path_operation_configuration/tutorial002_py310.py

    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 537 bytes
    - Viewed (0)
  7. docs_src/path_operation_configuration/tutorial006.py

    app = FastAPI()
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "johndoe"}]
    
    
    @app.get("/elements/", tags=["items"], deprecated=True)
    async def read_elements():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 365 bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/path-params.md

    Digamos que você tenha uma *operação de rota* com uma rota `/files/{file_path}`.
    
    Mas você precisa que o próprio `file_path` contenha uma *rota*, como `home/johndoe/myfile.txt`.
    
    Então, a URL para este arquivo deveria ser algo como: `/files/home/johndoe/myfile.txt`.
    
    ### Suporte do OpenAPI
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/security/oauth2-jwt.md

    注意,划重点,`sub` 键在整个应用中应该只有一个唯一的标识符,而且应该是字符串。
    
    ## 检查
    
    运行服务器并访问文档: <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>。
    
    可以看到如下用户界面:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/security/image07.png">
    
    用与上一章同样的方式实现应用授权。
    
    使用如下凭证:
    
    用户名: `johndoe` 密码: `secret`
    
    !!! check "检查"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. docs/tr/docs/tutorial/path-params.md

    ```
    
    ## Yol İçeren Yol Parametreleri
    
    Farz edelim ki elinizde `/files/{file_path}` isminde bir *yol operasyonu* var.
    
    Fakat `file_path` değerinin `home/johndoe/myfile.txt` gibi bir *yol* barındırmasını istiyorsunuz.
    
    Sonuç olarak, oluşturmak istediğin URL `/files/home/johndoe/myfile.txt` gibi bir şey olacaktır.
    
    ### OpenAPI Desteği
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.8K bytes
    - Viewed (0)
Back to top