- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 149 for decorador (0.09 sec)
-
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: * `@app.post()` * `@app.put()`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:48:16 UTC 2024 - 11.8K bytes - Viewed (0) -
docs/en/docs/tutorial/path-operation-configuration.md
# 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 You can define the (HTTP) `status_code` to be used in the response of your *path operation*. You can pass directly the `int` code, like `404`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.4K bytes - Viewed (0) -
docs/de/docs/tutorial/first-steps.md
/// info | "`@decorator` Information" 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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.5K bytes - Viewed (0) -
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,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:44:57 UTC 2024 - 172.1K bytes - Viewed (0) -
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():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 15.4K bytes - Viewed (0) -
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,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:52:31 UTC 2024 - 172.2K bytes - Viewed (0) -
istioctl/pkg/describe/testdata/describe/tls_config.json
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 8K bytes - Viewed (0) -
istioctl/pkg/describe/testdata/describe/http_config.json
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 13.7K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
* If you also declare dependencies in a specific *path operation*, **they will be executed too**. * The router dependencies are executed first, then the [`dependencies` in the decorator](dependencies/dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, and then the normal parameter dependencies. * You can also add [`Security` dependencies with `scopes`](../advanced/security/oauth2-scopes.md){.internal-link target=_blank}.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.4K bytes - Viewed (0) -
docs/vi/docs/tutorial/first-steps.md
Bạn đặt nó trên một hàm. Giống như một chiếc mũ xinh xắn (Tôi ddonas đó là lí do mà thuật ngữ này ra đời). Một "decorator" lấy một hàm bên dưới và thực hiện một vài thứ với nó. Trong trường hợp của chúng ta, decorator này nói **FastAPI** rằng hàm bên dưới ứng với **đường dẫn** `/` và một **toán tử** `get`. Nó là một "**decorator đường dẫn toán tử**". /// Bạn cũng có thể sử dụng với các toán tử khác:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0)