Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 196 for decorator (0.42 sec)

  1. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ## Adicione `dependencies` ao decorador da operação de rota { #add-dependencies-to-the-path-operation-decorator }
    
    O *decorador da operação de rota* recebe um argumento opcional `dependencies`.
    
    Ele deve ser uma lista de `Depends()`:
    
    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[19] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/path-operation-configuration.md

    # Configuración de Path Operation { #path-operation-configuration }
    
    Hay varios parámetros que puedes pasar a tu *path operation decorator* para configurarlo.
    
    /// warning | Advertencia
    
    Ten en cuenta que estos parámetros se pasan directamente al *path operation decorator*, no a tu *path operation function*.
    
    ///
    
    ## Código de Estado del Response { #response-status-code }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/path-operation-configuration.md

    # Path Operation Configuration { #path-operation-configuration }
    
    There are several parameters that you can pass to your *path operation decorator* to configure it.
    
    /// warning
    
    Notice that these parameters are passed directly to the *path operation decorator*, not to your *path operation function*.
    
    ///
    
    ## Response Status Code { #response-status-code }
    
    You can define the (HTTP) `status_code` to be used in the response of your *path operation*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/first-steps.md

    /// info | `@decorator` Info
    
    Diese `@something`-Syntax wird in Python „Dekorator“ genannt.
    
    Sie platzieren ihn über einer Funktion. Wie ein hübscher, dekorativer Hut (daher kommt wohl der Begriff).
    
    Ein „Dekorator“ nimmt die darunter stehende Funktion und macht etwas damit.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/custom-response.md

    Pero también puedes declarar el `Response` que quieres usar (por ejemplo, cualquier subclase de `Response`), en el *path operation decorator* usando el parámetro `response_class`.
    
    Los contenidos que devuelvas desde tu *path operation function* se colocarán dentro de esa `Response`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/first-steps.md

                 the following code:
    
                 <u style="text-decoration-style:solid">from </u><u style="text-decoration-style:solid"><b>main</b></u><u style="text-decoration-style:solid"> import </u><u style="text-decoration-style:solid"><b>app</b></u>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ## Добавление `dependencies` (зависимостей) в *декоратор операции пути* { #add-dependencies-to-the-path-operation-decorator }
    
    *Декоратор операции пути* получает необязательный аргумент `dependencies`.
    
    Это должен быть `list` состоящий из `Depends()`:
    
    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[19] *}
    
    Зависимости из dependencies выполнятся так же, как и обычные зависимости. Но их значения (если они были) не будут переданы в *функцию операции пути*.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/first-steps.md

    #### Визначте декоратор операції шляху (path operation decorator)
    
    {* ../../docs_src/first_steps/tutorial001.py hl[6] *}
    Декоратор `@app.get("/")` вказує **FastAPI**, що функція нижче, відповідає за обробку запитів, які надходять до неї:
    
    * шлях `/`
    * використовуючи <abbr title="an HTTP GET method"><code>get</code> операцію</abbr>
    
    /// info | `@decorator` Додаткова інформація
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/custom-response.md

    But you can also declare the `Response` that you want to be used (e.g. any `Response` subclass), in the *path operation decorator* using the `response_class` parameter.
    
    The contents that you return from your *path operation function* will be put inside of that `Response`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. docs/es/docs/advanced/testing-dependencies.md

    /// tip | Consejo
    
    Puedes sobreescribir una dependencia utilizada en cualquier lugar de tu aplicación **FastAPI**.
    
    La dependencia original podría ser utilizada en una *path operation function*, un *path operation decorator* (cuando no usas el valor de retorno), una llamada a `.include_router()`, etc.
    
    FastAPI todavía podrá sobrescribirla.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top