Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for enforce (0.25 sec)

  1. docs/en/docs/tutorial/first-steps.md

    And the more exotic ones:
    
    * `@app.options()`
    * `@app.head()`
    * `@app.patch()`
    * `@app.trace()`
    
    !!! tip
        You are free to use each operation (HTTP method) as you wish.
    
        **FastAPI** doesn't enforce any specific meaning.
    
        The information here is presented as a guideline, not a requirement.
    
        For example, when using GraphQL you normally perform all the actions using only `POST` operations.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

    * An optional `grant_type`.
    
    !!! tip
        The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
    
        If you need to enforce it, use `OAuth2PasswordRequestFormStrict` instead of `OAuth2PasswordRequestForm`.
    
    * An optional `client_id` (we don't need it for our example).
    * An optional `client_secret` (we don't need it for our example).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/index.md

    This is very useful when you need to:
    
    * Have shared logic (the same code logic again and again).
    * Share database connections.
    * Enforce security, authentication, role requirements, etc.
    * And many other things...
    
    All these, while minimizing code repetition.
    
    ## First Steps
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/docker.md

    Containers are mainly a tool to simplify the process of **building and deploying** an application, but they don't enforce a particular approach to handle these **deployment concepts**, and there are several possible strategies.
    
    The **good news** is that with each different strategy there's a way to cover all of the deployment concepts. 🎉
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  5. docs/fr/docs/index.md

        * **WebSockets**
        * de tester le code très facilement avec `requests` et `pytest`
        * **<abbr title="Cross-Origin Resource Sharing">CORS</abbr>**
        * **Cookie Sessions**
        * ... et plus encore.
    
    ## Performance
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

        yaml_data = """
            name: Deadpoolio
            tags:
            - x-force
            - x-men
            - x-avengers
            """
        response = client.post("/items/", content=yaml_data)
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Deadpoolio",
            "tags": ["x-force", "x-men", "x-avengers"],
        }
    
    
    @needs_pydanticv2
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  7. docs/fr/docs/advanced/response-directly.md

    ## Renvoyer une `Response` personnalisée
    
    L'exemple ci-dessus montre toutes les parties dont vous avez besoin, mais il n'est pas encore très utile, car vous auriez pu retourner l'`item` directement, et **FastAPI** l'aurait mis dans une `JSONResponse` pour vous, en le convertissant en `dict`, etc. Tout cela par défaut.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. docs/es/docs/async.md

    * **Machine Learning**: normalmente requiere muchas multiplicaciones de "matrices" y "vectores". Imagina en una enorme hoja de cálculo con números y tener que multiplicarlos todos al mismo tiempo.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top