Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 398 for declarou (0.16 sec)

  1. docs/en/docs/tutorial/query-params-str-validations.md

    It is used by Pydantic and FastAPI to explicitly declare that a value is required.
    
    ///
    
    This will let **FastAPI** know that this parameter is required.
    
    ### Required, can be `None`
    
    You can declare that a parameter can accept `None`, but that it's still required. This would force clients to send a value, even if the value is `None`.
    
    To do that, you can declare that `None` is a valid type but still use `...` as the default:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/sql-databases.md

    Como cada modelo SQLModel também é um modelo Pydantic, você pode usá-lo nas mesmas **anotações de tipo** que usaria para modelos Pydantic.
    
    Por exemplo, se você declarar um parâmetro do tipo `Hero`, ele será lido do **corpo JSON**.
    
    Da mesma forma, você pode declará-lo como o **tipo de retorno** da função, e então o formato dos dados aparecerá na interface de documentação automática da API.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/get-current-user.md

    ```Python hl_lines="31"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    Notice that we declare the type of `current_user` as the Pydantic model `User`.
    
    This will help us inside of the function with all the completion and type checks.
    
    /// tip
    
    You might remember that request bodies are also declared with Pydantic models.
    
    Here **FastAPI** won't get confused because you are using `Depends`.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/dependencies/index.md

    So, the interactive docs will have all the information from these dependencies too:
    
    <img src="/img/tutorial/dependencies/image01.png">
    
    ## Simple usage
    
    If you look at it, *path operation functions* are declared to be used whenever a *path* and *operation* matches, and then **FastAPI** takes care of calling the function with the correct parameters, extracting the data from the request.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:18:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/templates.md

    Além disso, em versões anteriores, o objeto `request` era passado como parte dos pares chave-valor no "context" dict para o Jinja2.
    
    ///
    
    /// tip | "Dica"
    
    Ao declarar `response_class=HTMLResponse`, a documentação entenderá que a resposta será HTML.
    
    ///
    
    /// note | "Detalhes Técnicos"
    
    Você também poderia usar `from starlette.templating import Jinja2Templates`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request_files.md

    ///
    
    /// tip | Dica
    
    Para declarar o corpo de arquivos, você precisa utilizar `File`, do contrário os parâmetros seriam interpretados como parâmetros de consulta ou corpo (JSON) da requisição.
    
    ///
    
    Os arquivos serão enviados como "form data".
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 16 15:12:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/background-tasks.md

    * Les arguments nommés à passer à la fonction de tâche (`message="some notification"`).
    
    ## Injection de dépendances
    
    Utiliser `BackgroundTasks` fonctionne aussi avec le système d'injection de dépendances. Vous pouvez déclarer un paramètre de type `BackgroundTasks` à différents niveaux : dans une *fonction de chemin*, dans une dépendance, dans une sous-dépendance...
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:29:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/SubtypeTester.java

     *
     * <p>The declaration methods must be public.
     */
    @AndroidIncompatible // only used by android incompatible tests.
    abstract class SubtypeTester implements Cloneable {
    
      /** Annotates a public method that declares subtype assertion. */
      @RequiredModifiers(Modifier.PUBLIC)
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.METHOD)
      @interface TestSubtype {
        /** Suppresses the assertion on {@link TypeToken#getSubtype}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/first-steps.md

    * The user types the `username` and `password` in the frontend, and hits `Enter`.
    * The frontend (running in the user's browser) sends that `username` and `password` to a specific URL in our API (declared with `tokenUrl="token"`).
    * The API checks that `username` and `password`, and responds with a "token" (we haven't implemented any of this yet).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top