Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Want (0.12 sec)

  1. docs/en/docs/tutorial/path-params.md

    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    The first one will always be used since the path matches first.
    
    ## Predefined values
    
    If you have a *path operation* that receives a *path parameter*, but you want the possible valid *path parameter* values to be predefined, you can use a standard Python <abbr title="Enumeration">`Enum`</abbr>.
    
    ### Create an `Enum` class
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/path-params.md

    ```JSON
    {"item_id":3}
    ```
    
    !!! check "vérifier"
        Comme vous l'avez remarqué, la valeur reçue par la fonction (et renvoyée ensuite) est `3`,
        en tant qu'entier (`int`) Python, pas la chaîne de caractères (`string`) `"3"`.
    
        Grâce aux déclarations de types, **FastAPI** fournit du
    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)
Back to top