Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for lists (0.14 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs/es/docs/index.md

    </p>
    <p align="center">
        FastAPI framework, alto desempeño, fácil de aprender, rápido de programar, listo para producción
    </p>
    <p align="center">
    <a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank">
        <img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  10. docs/en/docs/fastapi-people.md

    hide:
      - navigation
    ---
    
    # FastAPI People
    
    FastAPI has an amazing community that welcomes people from all backgrounds.
    
    ## Creator
    
    Hey! 👋
    
    This is me:
    
    {% if people %}
    <div class="user-list user-list-center">
    {% for user in people.maintainers %}
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 16 23:54:24 GMT 2024
    - 8.7K bytes
    - Viewed (0)
Back to top