Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 358 for require (6.72 sec)

  1. tests/test_compat.py

    def test_union_scalar_list():
        # For coverage
        # TODO: there might not be a current valid code path that uses this, it would
        # potentially enable query parameters defined as both a scalar and a list
        # but that would require more refactors, also not sure it's really useful
        from fastapi._compat import is_pv1_scalar_field
    
        field_info = FieldInfo()
        field = ModelField(
            name="foo",
            field_info=field_info,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/testing.md

    It has a `GET` operation that could return an error.
    
    It has a `POST` operation that could return several errors.
    
    Both *path operations* require an `X-Token` header.
    
    === "Python 3.10+"
    
        ```Python
        {!> ../../../docs_src/app_testing/app_b_an_py310/main.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/https.md

    * Nginx
    * HAProxy
    
    ## Let's Encrypt
    
    Before Let's Encrypt, these **HTTPS certificates** were sold by trusted third parties.
    
    The process to acquire one of these certificates used to be cumbersome, require quite some paperwork and the certificates were quite expensive.
    
    But then **<a href="https://letsencrypt.org/" class="external-link" target="_blank">Let's Encrypt</a>** was created.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/oauth2-jwt.md

    It gives you all the flexibility to choose the ones that fit your project the best.
    
    And you can use directly many well maintained and widely used packages like `passlib` and `python-jose`, because **FastAPI** doesn't require any complex mechanisms to integrate external packages.
    
    But it provides you the tools to simplify the process as much as possible without compromising flexibility, robustness, or security.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/bigger-applications.md

        * You can also add [`Security` dependencies with `scopes`](../advanced/security/oauth2-scopes.md){.internal-link target=_blank}.
    
    !!! tip
        Having `dependencies` in the `APIRouter` can be used, for example, to require authentication for a whole group of *path operations*. Even if the dependencies are not added individually to each one of them.
    
    !!! check
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. fastapi/security/oauth2.py

    
        grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".
            This dependency is strict about it. If you want to be permissive, use instead the
            OAuth2PasswordRequestForm dependency class.
        username: username string. The OAuth2 spec requires the exact field name "username".
        password: password string. The OAuth2 spec requires the exact field name "password".
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  7. docs/fr/docs/tutorial/query-params-str-validations.md

    ```
    
    Mais déclare explicitement `q` comme étant un paramètre de requête.
    
    !!! info
        Gardez à l'esprit que la partie la plus importante pour rendre un paramètre optionnel est :
    
        ```Python
        = None
        ```
    
        ou :
    
        ```Python
        = Query(None)
        ```
    
        et utilisera ce `None` pour détecter que ce paramètre de requête **n'est pas requis**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  8. docs/en/docs/alternatives.md

    It requires a little bit more verbose configurations. And as it is based on WSGI (instead of ASGI), it is not designed to take advantage of the high performance provided by tools like Uvicorn, Starlette and Sanic.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_forms/test_tutorial001_an.py

                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "password"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_bigger_applications/test_main_an.py

                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["query", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
Back to top