- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 209 for routess (0.11 sec)
-
docs_src/bigger_applications/app_an_py39/main.py
from fastapi import Depends, FastAPI from .dependencies import get_query_token, get_token_header from .internal import admin from .routers import items, users app = FastAPI(dependencies=[Depends(get_query_token)]) app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)],
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 552 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial002.py
""" Simplify operation IDs so that generated API clients have simpler function names. Should be called only after all routes have been added. """ for route in app.routes: if isinstance(route, APIRoute): route.operation_id = route.name # in this case, 'read_items'
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 572 bytes - Viewed (0) -
fastapi/openapi/utils.py
operation["summary"] = generate_operation_summary(route=route, method=method) if route.description: operation["description"] = route.description operation_id = route.operation_id or route.unique_id if operation_id in operation_ids: message = ( f"Duplicate Operation ID {operation_id} for function " + f"{route.endpoint.__name__}" )
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 22.6K bytes - Viewed (0) -
docs_src/bigger_applications/app_an/main.py
from fastapi import Depends, FastAPI from .dependencies import get_query_token, get_token_header from .internal import admin from .routers import items, users app = FastAPI(dependencies=[Depends(get_query_token)]) app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)],
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 552 bytes - Viewed (0) -
tests/test_ws_dependencies.py
assert data == ["app", "index"] def test_routerindex(): client = TestClient(app) with client.websocket_connect("/router") as websocket: data = json.loads(websocket.receive_text()) assert data == ["app", "router2", "router", "routerindex"] def test_routerprefixindex(): client = TestClient(app) with client.websocket_connect("/prefix/") as websocket:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Jun 11 20:35:39 UTC 2023 - 2.1K bytes - Viewed (1) -
docs/en/docs/advanced/openapi-callbacks.md
/// ### Add the callback router At this point you have the *callback path operation(s)* needed (the one(s) that the *external developer* should implement in the *external API*) in the callback router you created above. Now use the parameter `callbacks` in *your API's path operation decorator* to pass the attribute `.routes` (that's actually just a `list` of routes/*path operations*) from that callback router:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
tests/test_ws_router.py
await websocket.close() @router.websocket("/router/{pathparam:path}") async def routerindexparams(websocket: WebSocket, pathparam: str, queryparam: str): await websocket.accept() await websocket.send_text(pathparam) await websocket.send_text(queryparam) await websocket.close() async def ws_dependency(): return "Socket Dependency" @router.websocket("/router-ws-depends/")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Jun 11 19:08:14 UTC 2023 - 7.5K bytes - Viewed (0) -
docs/em/docs/advanced/behind-a-proxy.md
[entryPoints.http] address = ":9999" [providers] [providers.file] filename = "routes.toml" ``` đ đŦ Traefik đ đ â´ 9ī¸âŖ9ī¸âŖ9ī¸âŖ9ī¸âŖ & âī¸ â1ī¸âŖ đ `routes.toml`. /// tip đĨ âī¸ â´ 9ī¸âŖ9ī¸âŖ9ī¸âŖ9ī¸âŖ âŠī¸ đŠ đēđ¸đ â´ 8ī¸âŖ0ī¸âŖ đ đ đĢ âī¸ đ âĢī¸ âŽī¸ đĄ (`sudo`) đ. /// đ â đ đ đ `routes.toml`: ```TOML hl_lines="5 12 20" [http] [http.middlewares]
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/listener.go
} return strings.Join(vh.GetDomains(), "/") } func describeRoutes(vh *route.VirtualHost) string { routes := make([]string, 0, len(vh.GetRoutes())) for _, route := range vh.GetRoutes() { routes = append(routes, describeMatch(route.GetMatch())) } return strings.Join(routes, ", ") } func describeMatch(match *route.RouteMatch) string { conds := []string{} if match.GetPrefix() != "" {
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 18.1K bytes - Viewed (0) -
istioctl/pkg/describe/testdata/describe/tls_config.json
"route_config": { "@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration", "name": "https.443.https.bookinfo-gateway.default", "virtual_hosts": [ { "name": "*:443", "domains": [ "*" ], "routes": [ { "match": {
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 8K bytes - Viewed (0)