Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 216 for decorators (0.07 seconds)

  1. docs/en/docs/tutorial/bigger-applications.md

    /// tip
    
    Note that, much like [dependencies in *path operation decorators*](dependencies/dependencies-in-path-operation-decorators.md), no value will be passed to your *path operation function*.
    
    ///
    
    The end result is that the item paths are now:
    
    * `/items/`
    * `/items/{item_id}`
    
    ...as we intended.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 19.2K bytes
    - Click Count (0)
  2. docs/en/docs/alternatives.md

    compilation to JavaScript, it cannot rely on the types to define validation, serialization and documentation at the same time. Due to this and some design decisions, to get validation, serialization and automatic schema generation, it's needed to add decorators in many places. So, it becomes quite verbose.
    
    It can't handle nested models very well. So, if the JSON body in the request is a JSON object that has inner fields that in turn are nested JSON objects, it cannot be properly documented and...
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/first-steps.md

    You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
    A "decorator" takes the function below and does something with it.
    
    In our case, this decorator tells **FastAPI** that the function below corresponds to the **path** `/` with an **operation** `get`.
    
    It is the "**path operation decorator**".
    
    ///
    
    You can also use the other operations:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  4. docs/es/docs/tutorial/dependencies/global-dependencies.md

    Similar a como puedes [agregar `dependencies` a los *path operation decorators*](dependencies-in-path-operation-decorators.md), puedes agregarlos a la aplicación de `FastAPI`.
    
    En ese caso, se aplicarán a todas las *path operations* en la aplicación:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/dependencies/global-dependencies.md

    [`dependencies`'i *path operation decorator*'larına ekleyebildiğiniz](dependencies-in-path-operation-decorators.md) gibi, `FastAPI` uygulamasına da ekleyebilirsiniz.
    
    Bu durumda, uygulamadaki tüm *path operation*'lara uygulanırlar:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  6. docs/pt/docs/tutorial/dependencies/global-dependencies.md

    De forma semelhante a [adicionar `dependencies` aos *decoradores de operação de rota*](dependencies-in-path-operation-decorators.md), você pode adicioná-las à aplicação `FastAPI`.
    
    Nesse caso, elas serão aplicadas a todas as *operações de rota* da aplicação:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/dependencies/global-dependencies.md

    Bei einigen Anwendungstypen möchten Sie möglicherweise Abhängigkeiten zur gesamten Anwendung hinzufügen.
    
    Ähnlich wie Sie [`dependencies` zu den *Pfadoperation-Dekoratoren* hinzufügen](dependencies-in-path-operation-decorators.md) können, können Sie sie auch zur `FastAPI`-Anwendung hinzufügen.
    
    In diesem Fall werden sie auf alle *Pfadoperationen* in der Anwendung angewendet:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  8. docs/fr/docs/tutorial/dependencies/global-dependencies.md

    Comme vous pouvez [ajouter des `dependencies` aux *décorateurs de chemin d'accès*](dependencies-in-path-operation-decorators.md), vous pouvez les ajouter à l'application `FastAPI`.
    
    Dans ce cas, elles seront appliquées à tous les *chemins d'accès* de l'application :
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/tutorial/dependencies/global-dependencies.md

    在某些類型的應用程式中,你可能想為整個應用程式新增依賴。
    
    類似於你可以在[路徑操作(path operation)的裝飾器中新增 `dependencies`](dependencies-in-path-operation-decorators.md) 的方式,你也可以把它們加到 `FastAPI` 應用程式上。
    
    在這種情況下,它們會套用到應用程式中的所有路徑操作:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    而且,在[將 `dependencies` 新增到路徑操作裝飾器](dependencies-in-path-operation-decorators.md) 那一節中的所有概念依然適用,只是這裡是套用到整個應用中的所有路徑操作。
    
    ## 路徑操作群組的依賴 { #dependencies-for-groups-of-path-operations }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 1K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    В этом случае они будут применяться ко всем *операциям пути* в приложении:
    
    {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 1.7K bytes
    - Click Count (0)
Back to Top