Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 100 for lists (5.53 sec)

  1. docs/en/docs/tutorial/response-model.md

    `response_model` receives the same type you would declare for a Pydantic model field, so, it can be a Pydantic model, but it can also be, e.g. a `list` of Pydantic models, like `List[Item]`.
    
    FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/nosql-databases-couchbase.md

    You can adapt it to any other NoSQL database like:
    
    * **MongoDB**
    * **Cassandra**
    * **CouchDB**
    * **ArangoDB**
    * **ElasticSearch**, etc.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. 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
    
    But Python has a specific way to declare lists with internal types, or "type parameters":
    
    ### Import typing's `List`
    
    In Python 3.9 and above you can use the standard `list` to declare these type annotations as we'll see below. 💡
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/body-nested-models.md

    ```Python
    my_list: list[str]
    ```
    
    Und in Python-Versionen vor 3.9:
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    Das ist alles Standard-Python-Syntax für Typdeklarationen.
    
    Verwenden Sie dieselbe Standardsyntax für Modellattribute mit inneren Typen.
    
    In unserem Beispiel können wir also bewirken, dass `tags` spezifisch eine „Liste von Strings“ ist:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/response-directly.md

    ## Usando el `jsonable_encoder` en una `Response`
    
    Como **FastAPI** no realiza ningún cambio en la `Response` que devuelves, debes asegurarte de que el contenido está listo.
    
    Por ejemplo, no puedes poner un modelo Pydantic en una `JSONResponse` sin primero convertirlo a un `dict` con todos los tipos de datos (como `datetime`, `UUID`, etc) convertidos a tipos compatibles con JSON.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 11:57:27 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/extra-models.md

    ## List of models
    
    The same way, you can declare responses of lists of objects.
    
    For that, use the standard Python `typing.List` (or just `list` in Python 3.9 and above):
    
    === "Python 3.9+"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/extra_models/tutorial004_py39.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  7. docs/fr/docs/features.md

    Mais, **tout fonctionne** par défaut.
    
    ### Validation
    
    * Validation pour la plupart (ou tous?) les **types de données** Python incluant:
        * objets JSON (`dict`).
        * listes JSON (`list`) définissant des types d'éléments.
        * Champs String (`str`), définition de longueur minimum ou maximale.
        * Nombres (`int`, `float`) avec valeur minimale and maximale, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

        * Large refactor, improvement, and simplification of param extraction from *path operations*.
        * Fix/add support for list *query parameters* with list defaults. New documentation: [Query parameter list / multiple values with defaults](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#query-parameter-list-multiple-values-with-defaults).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  9. docs/de/docs/tutorial/query-params-str-validations.md

        ```
    
    !!! note "Hinweis"
        Beachten Sie, dass FastAPI in diesem Fall den Inhalt der Liste nicht überprüft.
    
        Zum Beispiel würde `List[int]` überprüfen (und dokumentieren) dass die Liste Ganzzahlen enthält. `list` alleine macht das nicht.
    
    ## Deklarieren von mehr Metadaten
    
    Sie können mehr Informationen zum Parameter hinzufügen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/response-model.md

        ```
    
    * `description: Union[str, None] = None` (oder `str | None = None` in Python 3.10) hat einen Defaultwert `None`.
    * `tax: float = 10.5` hat einen Defaultwert `10.5`.
    * `tags: List[str] = []` hat eine leere Liste als Defaultwert: `[]`.
    
    Aber Sie möchten diese vielleicht vom Resultat ausschließen, wenn Sie gar nicht gesetzt wurden.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top