Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 329 for declare (0.06 sec)

  1. docs/en/docs/tutorial/header-param-models.md

    This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎
    
    /// note
    
    This is supported since FastAPI version `0.115.0`. đŸ€“
    
    ///
    
    ## Header Parameters with a Pydantic Model { #header-parameters-with-a-pydantic-model }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/body.md

    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Déclarez-le comme paramÚtre
    
    Pour l'ajouter Ă  votre *opĂ©ration de chemin*, dĂ©clarez-le comme vous dĂ©clareriez des paramĂštres de chemin ou de requĂȘte :
    
    {* ../../docs_src/body/tutorial001.py hl[18] *}
    
    ...et déclarez que son type est le modÚle que vous avez créé : `Item`.
    
    ## Résultats
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    /// tip
    
    If you have strict type checks in your editor, mypy, etc, you can declare the function return type as `Any`.
    
    That way you tell the editor that you are intentionally returning anything. But FastAPI will still do the data documentation, validation, filtering, etc. with the `response_model`.
    
    ///
    
    ### `response_model` Priority { #response-model-priority }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 16K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/body-nested-models.md

    This will make `tags` be a list, although it doesn't declare the type of the elements of the list.
    
    ## List fields with type parameter { #list-fields-with-type-parameter }
    
    But Python has a specific way to declare lists with internal types, or "type parameters":
    
    ### Import typing's `List` { #import-typings-list }
    
    In Python 3.9 and above you can use the standard `list` to declare these type annotations as we'll see below. 💡
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/query-param-models.md

    This would allow you to **re-use the model** in **multiple places** and also to declare validations and metadata for all the parameters at once. 😎
    
    /// note
    
    This is supported since FastAPI version `0.115.0`. đŸ€“
    
    ///
    
    ## Query Parameters with a Pydantic Model { #query-parameters-with-a-pydantic-model }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/body-multiple-params.md

    You can also declare singular values to be received as part of the body.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/request-files.md

    ///
    
    /// tip
    
    To declare File bodies, you need to use `File`, because otherwise the parameters would be interpreted as query parameters or body (JSON) parameters.
    
    ///
    
    The files will be uploaded as "form data".
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/query-param-models.md

    Isso permitiria que vocĂȘ **reutilizasse o modelo** em **diversos lugares**, e tambĂ©m declarasse validaçÔes e metadados de todos os parĂąmetros de uma Ășnica vez. 😎
    
    /// note | Nota
    
    Isso Ă© suportado desde o FastAPI versĂŁo `0.115.0`. đŸ€“
    
    ///
    
    ## ParĂąmetros de Consulta com um Modelo Pydantic
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/header-params.md

    ## Import `Header` { #import-header }
    
    First import `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare `Header` parameters { #declare-header-parameters }
    
    Then declare the header parameters using the same structure as with `Path`, `Query` and `Cookie`.
    
    You can define the default value as well as all the extra validation or annotation parameters:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/request-forms.md

    With `Form` you can declare the same configurations as with `Body` (and `Query`, `Path`, `Cookie`), including validation, examples, an alias (e.g. `user-name` instead of `username`), etc.
    
    /// info
    
    `Form` is a class that inherits directly from `Body`.
    
    ///
    
    /// tip
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top