Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 338 for declarou (0.36 sec)

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

    Si tienes chequeos estrictos de tipos en tu editor, mypy, etc., puedes declarar el tipo de retorno de la función como `Any`.
    
    De esa manera le dices al editor que intencionalmente estás devolviendo cualquier cosa. Pero FastAPI todavía hará la documentación de datos, validación, filtrado, etc. con `response_model`.
    
    ///
    
    ### Prioridad del `response_model` { #response-model-priority }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/query-param-models.md

    /// note | Nota
    
    Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓
    
    ///
    
    ## Parámetros Query con un Modelo Pydantic { #query-parameters-with-a-pydantic-model }
    
    Declara los **parámetros query** que necesitas en un **modelo de Pydantic**, y luego declara el parámetro como `Query`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body.md

    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    ## Declare it as a parameter { #declare-it-as-a-parameter }
    
    To add it to your *path operation*, declare it the same way you declared path and query parameters:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[16] *}
    
    ...and declare its type as the model you created, `Item`.
    
    ## Results { #results }
    
    With just that Python type declaration, **FastAPI** will:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md

    Podemos fazer melhor...
    
    ## O que caracteriza uma dependência { #what-makes-a-dependency }
    
    Até agora você apenas viu dependências declaradas como funções.
    
    Mas essa não é a única forma de declarar dependências (mesmo que provavelmente seja a mais comum).
    
    O fator principal para uma dependência é que ela deve ser "chamável"
    
    Um objeto "chamável" em Python é qualquer coisa que o Python possa "chamar" como uma função
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/Parameter.java

      private final ImmutableList<Annotation> annotations;
    
      /**
       * An {@code AnnotatedType} instance, or {@code null} under Android VMs (possible only when using
       * the Android flavor of Guava). The field is declared with a type of {@code Object} to avoid
       * compatibility problems on Android VMs. The corresponding accessor method, however, can have the
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str | None, Query(min_length=3)] = None
    ```
    
    So, when you need to declare a value as required while using `Query`, you can simply not declare a default value:
    
    {* ../../docs_src/query_params_str_validations/tutorial006_an_py39.py hl[9] *}
    
    ### Required, can be `None` { #required-can-be-none }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/cookie-params.md

    ## Importe `Cookie` { #import-cookie }
    
    Primeiro importe `Cookie`:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## Declare parâmetros de `Cookie` { #declare-cookie-parameters }
    
    Então declare os parâmetros de cookie usando a mesma estrutura que em `Path` e `Query`.
    
    Você pode definir o valor padrão, assim como todas as validações extras ou parâmetros de anotação:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/sql-databases.md

    Because each SQLModel model is also a Pydantic model, you can use it in the same **type annotations** that you could use Pydantic models.
    
    For example, if you declare a parameter of type `Hero`, it will be read from the **JSON body**.
    
    The same way, you can declare it as the function's **return type**, and then the shape of the data will show up in the automatic API docs UI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 05:06:56 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/request-form-models.md

    ///
    
    /// note
    
    This is supported since FastAPI version `0.113.0`. 🤓
    
    ///
    
    ## Pydantic Models for Forms { #pydantic-models-for-forms }
    
    You just need to declare a **Pydantic model** with the fields you want to receive as **form fields**, and then declare the parameter as `Form`:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  10. docs/fr/docs/advanced/additional-responses.md

    Vous pouvez déclarer un `response_model`, en utilisant le code HTTP par défaut `200` (ou un code personnalisé si vous en avez besoin), puis déclarer des informations supplémentaires pour cette même réponse dans `responses`, directement dans le schéma OpenAPI.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top