- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for url (0.16 sec)
-
tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 1K bytes - Viewed (0) -
docs/sts/client-grants.py
'0Z4VTG8uJBSekn42HE40DK9vQb4a'), ) boto3_session = Session(botocore_session=bc_session) s3 = boto3_session.resource('s3', endpoint_url='http://localhost:9000') with open('/etc/hosts', 'rb') as data: s3.meta.client.upload_fileobj(data, 'testbucket', 'hosts',
Python - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 1.2K bytes - Viewed (0) -
tests/test_no_swagger_ui_redirect.py
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI(swagger_ui_oauth2_redirect_url=None) @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 assert response.headers["content-type"] == "text/html; charset=utf-8"
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Wed Apr 08 04:37:38 GMT 2020 - 786 bytes - Viewed (0) -
scripts/mkdocs_hooks.py
dir_path = Path(config.docs_dir) lang = dir_path.parent.name if lang in available_langs: config.theme["language"] = lang if not (config.site_url or "").endswith(f"{lang}/") and not lang == "en": config.site_url = f"{config.site_url}{lang}/" return config def resolve_file(*, item: str, files: Files, config: MkDocsConfig) -> None: item_path = Path(config.docs_dir) / item
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 5.1K bytes - Viewed (0) -
tests/test_tutorial/test_metadata/test_tutorial004.py
"name": "items", "description": "Manage items. So _fancy_ they have their own docs.", "externalDocs": { "description": "Items external docs", "url": "https://fastapi.tiangolo.com/", }, }, ],
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2K bytes - Viewed (0) -
tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py
"servers": [ { "url": IsOneOf( "https://stag.example.com/", # TODO: remove when deprecating Pydantic v1 "https://stag.example.com", ), "description": "Staging environment", }, { "url": IsOneOf( "https://prod.example.com/",
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.6K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial001.py
get_swagger_ui_oauth2_redirect_html, ) app = FastAPI(docs_url=None, redoc_url=None) @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url, title=app.title + " - Swagger UI", oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url, swagger_js_url="https://unpkg.com/swagger-ui-dist@5.9.0/swagger-ui-bundle.js",
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 1.1K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
app = FastAPI(docs_url=None, redoc_url=None) app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/docs", include_in_schema=False) async def custom_swagger_ui_html(): return get_swagger_ui_html( openapi_url=app.openapi_url, title=app.title + " - Swagger UI", oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 1.1K bytes - Viewed (0) -
fastapi/datastructures.py
cast, ) from fastapi._compat import ( PYDANTIC_V2, CoreSchema, GetJsonSchemaHandler, JsonSchemaValue, with_info_plain_validator_function, ) from starlette.datastructures import URL as URL # noqa: F401 from starlette.datastructures import Address as Address # noqa: F401 from starlette.datastructures import FormData as FormData # noqa: F401 from starlette.datastructures import Headers as Headers # noqa: F401
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 5.6K bytes - Viewed (0) -
docs_src/response_model/tutorial003_04.py
from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal") async def get_portal(teleport: bool = False) -> Union[Response, dict]: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Tue Jan 10 16:22:47 GMT 2023 - 384 bytes - Viewed (0)