- Sort Score
- Result 10 results
- Languages All
Results 1071 - 1080 of 1,721 for item (0.14 sec)
-
tests/test_repeated_dependency_schema.py
client = TestClient(app) schema = { "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": {"$ref": "#/components/schemas/ValidationError"}, "title": "Detail", "type": "array", } }, "title": "HTTPValidationError",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.2K bytes - Viewed (0) -
tests/test_repeated_parameter_alias.py
assert actual_schema == { "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": {"$ref": "#/components/schemas/ValidationError"}, "title": "Detail", "type": "array", } },
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.7K bytes - Viewed (0) -
tests/test_include_route.py
from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.route("/items/") def read_items(request: Request): return JSONResponse({"hello": "world"}) app.include_router(router) client = TestClient(app) def test_sub_router(): response = client.get("/items/") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 496 bytes - Viewed (0) -
docs_src/bigger_applications/app/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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 29 17:32:18 UTC 2020 - 552 bytes - Viewed (0) -
scripts/playwright/separate_openapi_schemas/image02.py
# Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs") page.get_by_text("GET/items/Read Items").click() page.get_by_role("button", name="Try it out").click() page.get_by_role("button", name="Execute").click() # Manually add the screenshot page.screenshot(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 13 09:14:46 UTC 2024 - 1K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
} if len(pl.Items) < 1 { return errors.New("no pods found") } if len(pl.Items) > 1 { log.Warnf("more than 1 pods fits selector: %s; will use pod: %s", istiodLabelSelector, pl.Items[0].Name) } // only use the first pod in the list podName = pl.Items[0].Name ns = pl.Items[0].Namespace } else if len(args) == 1 {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001_03_an.py
"properties": { "detail": { "title": "Detail", "type": "array", "items": {"$ref": "#/components/schemas/ValidationError"}, } }, }, "ValidationError": { "title": "ValidationError",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 6K bytes - Viewed (0) -
ci/official/utilities/convert_msys_paths_to_win_paths.py
for prefix in whitelist_prefix: if var_name.startswith(prefix): return True return False def main(parsed_args: argparse.Namespace): converted_vars = {} for var, value in os.environ.items(): if not value or not should_convert(var, parsed_args.blacklist, parsed_args.whitelist_prefix): continue
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Aug 07 23:01:25 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/index.md
Например, у вас есть 4 API-эндпоинта (*операции пути*): - `/items/public/` - `/items/private/` - `/users/{user_id}/activate` - `/items/pro/` Тогда вы можете требовать разные права для каждого из них, используя зависимости и подзависимости: ```mermaid graph TB current_user(["current_user"])
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 17.6K bytes - Viewed (0) -
tests/test_swagger_ui_init_oauth.py
from fastapi.testclient import TestClient swagger_ui_init_oauth = {"clientId": "the-foo-clients", "appName": "The Predendapp"} app = FastAPI(swagger_ui_init_oauth=swagger_ui_init_oauth) @app.get("/items/") async def read_items(): return {"id": "foo"} client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Aug 09 10:54:05 UTC 2020 - 718 bytes - Viewed (0)