- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 48 for Decorator (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_dependency_overrides.py
response = client.get("/decorator-depends/?q=foo") assert response.status_code == 200 assert response.json() == {"in": "decorator-depends"} def test_decorator_depends_q_foo_skip_100_limit_200(): response = client.get("/decorator-depends/?q=foo&skip=100&limit=200") assert response.status_code == 200 assert response.json() == {"in": "decorator-depends"} def test_router_depends():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 11.2K bytes - Click Count (0) -
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 Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 12.8K bytes - Click Count (0) -
docs/es/docs/tutorial/first-steps.md
/// info | Información sobre `@decorator` Esa sintaxis `@algo` en Python se llama un "decorador". Lo pones encima de una función. Como un bonito sombrero decorativo (supongo que de ahí viene el término). Un "decorador" toma la función de abajo y hace algo con ella.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.3K bytes - Click Count (0) -
docs/tr/docs/tutorial/first-steps.md
* `/` yoluna gelen istekler /// info | `@decorator` Bilgisi Python'da `@something` sözdizimi "<abbr title="Decorator">dekoratör</abbr>" olarak adlandırılır. Dekoratörler, dekoratif bir şapka gibi (sanırım terim buradan geliyor) fonksiyonların üzerlerine yerleştirilirler. Bir "dekoratör" hemen altında bulunan fonksiyonu alır ve o fonksiyon ile bazı işlemler gerçekleştirir.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 10.4K bytes - Click Count (0) -
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`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.2K bytes - Click Count (0) -
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`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 12.4K bytes - Click Count (0) -
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` Додаткова інформаціяCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 15.5K bytes - Click Count (0) -
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.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 14.3K bytes - Click Count (0) -
docs/ru/docs/tutorial/first-steps.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 17.7K bytes - Click Count (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
## `Security` in decorator `dependencies` { #security-in-decorator-dependencies }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:49:48 GMT 2025 - 13.5K bytes - Click Count (0)