Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 83 for decorate (0.06 seconds)

  1. docs/tr/docs/tutorial/handling-errors.md

    Ve bunun için varsayılan bir exception handler da içerir.
    
    Override etmek için `RequestValidationError`’ı import edin ve exception handler’ı `@app.exception_handler(RequestValidationError)` ile decorate edin.
    
    Exception handler, bir `Request` ve exception’ı alır.
    
    {* ../../docs_src/handling_errors/tutorial004_py310.py hl[2,14:19] *}
    
    Artık `/items/foo`’ya giderseniz, şu varsayılan JSON hatası yerine:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. docs/tr/docs/tutorial/dependencies/dependencies-with-yield.md

    * [`@contextlib.asynccontextmanager`](https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager)
    
    Bunları, tek bir `yield` içeren bir fonksiyonu decorate etmek için kullanabilirsiniz.
    
    FastAPI, `yield` kullanan dependency'ler için içeride bunu yapar.
    
    Ancak FastAPI dependency'leri için bu decorator'ları kullanmak zorunda değilsiniz (hatta kullanmamalısınız).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 13.4K bytes
    - Click Count (0)
  3. fastapi/routing.py

            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_route(
                    path,
                    func,
                    methods=methods,
                    name=name,
                    include_in_schema=include_in_schema,
                )
                return func
    
            return decorator
    
        def add_api_route(
            self,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  4. fastapi/applications.py

            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_api_websocket_route(
                    path,
                    func,
                    name=name,
                    dependencies=dependencies,
                )
                return func
    
            return decorator
    
        def include_router(
            self,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  5. docs/fr/docs/tutorial/first-steps.md

    /// info | `@decorator` Info
    
    Cette syntaxe `@something` en Python est appelée un « décorateur ».
    
    Vous la mettez au-dessus d’une fonction. Comme un joli chapeau décoratif (j’imagine que c’est de là que vient le terme 🤷🏻‍♂).
    
    Un « décorateur » prend la fonction en dessous et fait quelque chose avec.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  6. docs/fr/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Dans ces cas, au lieu de déclarer un paramètre de *fonction de chemin d'accès* avec `Depends`, vous pouvez ajouter une `list` de `dependencies` au *décorateur de chemin d'accès*.
    
    ## Ajouter `dependencies` au *décorateur de chemin d'accès* { #add-dependencies-to-the-path-operation-decorator }
    
    Le *décorateur de chemin d'accès* accepte un argument optionnel `dependencies`.
    
    Il doit s'agir d'une `list` de `Depends()` :
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/response-model.md

    Dans ces cas, vous pouvez utiliser le paramètre `response_model` du *décorateur de chemin d'accès* au lieu du type de retour.
    
    Vous pouvez utiliser le paramètre `response_model` dans n'importe lequel des *chemins d'accès* :
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 18.1K bytes
    - Click Count (0)
  8. docs/ko/docs/tutorial/first-steps.md

    #### *경로 처리 데코레이터* 정의 { #define-a-path-operation-decorator }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[6] *}
    
    `@app.get("/")`은 **FastAPI**에게 바로 아래에 있는 함수가 다음으로 이동하는 요청을 처리한다는 것을 알려줍니다:
    
    * 경로 `/`
    * <dfn title="HTTP GET 메소드"><code>get</code> 작동</dfn> 사용
    
    /// info | `@decorator` 정보
    
    이 `@something` 문법은 파이썬에서 "데코레이터"라 부릅니다.
    
    마치 예쁜 장식용(Decorative) 모자처럼(개인적으로 이 용어가 여기서 유래한 것 같습니다) 함수 맨 위에 놓습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15K bytes
    - Click Count (0)
  9. docs/tr/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    Bu gibi durumlarda, `Depends` ile bir *path operation function* parametresi tanımlamak yerine, *path operation decorator*'üne `dependencies` adında bir `list` ekleyebilirsiniz.
    
    ## *Path Operation Decorator*'üne `dependencies` Ekleyin { #add-dependencies-to-the-path-operation-decorator }
    
    *Path operation decorator*, opsiyonel bir `dependencies` argümanı alır.
    
    Bu, `Depends()` öğelerinden oluşan bir `list` olmalıdır:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/vibe.md

    Do you just want to **vibe**? 🎶
    
    **FastAPI** now supports a new `@app.vibe()` decorator that embraces **modern AI coding best practices**. 🤖
    
    ## How It Works { #how-it-works }
    
    The `@app.vibe()` decorator is intended to receive **any HTTP method** (`GET`, `POST`, `PUT`, `DELETE`, `PATCH`, etc.) and **any payload**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 2K bytes
    - Click Count (0)
Back to Top