- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for url (0.25 sec)
-
tests/test_tutorial/test_response_model/test_tutorial004_py39.py
"description": None, "price": 50.2, "tax": 10.5, "tags": [], }, ), ], ) def test_get(url, data, client: TestClient): response = client.get(url) assert response.status_code == 200, response.text assert response.json() == data @needs_py39 def test_openapi_schema(client: TestClient):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.2K bytes - Viewed (0) -
docs_src/sql_databases/sql_app/tests/test_sql_app.py
from sqlalchemy.orm import sessionmaker from sqlalchemy.pool import StaticPool from ..database import Base from ..main import app, get_db SQLALCHEMY_DATABASE_URL = "sqlite://" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, poolclass=StaticPool, ) TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jun 22 11:20:12 GMT 2023 - 1.2K bytes - Viewed (0) -
docs/sts/web-identity.py
from botocore.client import Config from flask import Flask, request boto3.set_stream_logger('boto3.resources', logging.DEBUG) authorize_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/auth" token_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/token" # callback url specified when the application was defined callback_uri = "http://localhost:8000/oauth2/callback" # keycloak id and secret
Python - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Jul 28 01:37:51 GMT 2021 - 2.9K bytes - Viewed (1) -
docs_src/body_nested_models/tutorial008_py39.py
from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str @app.post("/images/multiple/") async def create_multiple_images(images: list[Image]):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 248 bytes - Viewed (0) -
docs_src/metadata/tutorial002.py
from fastapi import FastAPI app = FastAPI(openapi_url="/api/v1/openapi.json") @app.get("/items/") async def read_items():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 02 04:55:20 GMT 2020 - 154 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial008.py
from typing import List from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str @app.post("/images/multiple/") async def create_multiple_images(images: List[Image]):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 12 19:41:44 GMT 2020 - 273 bytes - Viewed (0) -
docs_src/response_model/tutorial003_05_py310.py
from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal", response_model=None) async def get_portal(teleport: bool = False) -> Response | dict: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 10 16:22:47 GMT 2023 - 373 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial007_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() images: Union[list[Image], None] = None class Offer(BaseModel): name: str
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 570 bytes - Viewed (0) -
scripts/docs.py
index_sponsors_template = """ {% if sponsors %} {% for sponsor in sponsors.gold -%} <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}"></a> {% endfor -%} {%- for sponsor in sponsors.silver -%} <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}"></a> {% endfor %} {% endif %} """
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 22 19:26:14 GMT 2024 - 10.9K bytes - Viewed (1) -
docs_src/body_nested_models/tutorial006_py310.py
from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() images: list[Image] | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 475 bytes - Viewed (0)