- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 588 for Junior (0.17 sec)
-
tests/test_union_body.py
from typing import Optional, Union from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: Optional[str] = None class OtherItem(BaseModel): price: int @app.post("/items/") def save_union_body(item: Union[OtherItem, Item]): return {"item": item}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.6K bytes - Viewed (0) -
tests/test_union_inherited_body.py
from typing import Optional, Union from dirty_equals import IsDict from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: Optional[str] = None class ExtendedItem(Item): age: int @app.post("/items/") def save_union_different_body(item: Union[ExtendedItem, Item]): return {"item": item}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 5.2K bytes - Viewed (0) -
fastapi/params.py
), ] = None, discriminator: Union[str, None] = None, strict: Union[bool, None] = _Unset, multiple_of: Union[float, None] = _Unset, allow_inf_nan: Union[bool, None] = _Unset, max_digits: Union[int, None] = _Unset, decimal_places: Union[int, None] = _Unset, examples: Optional[List[Any]] = None, example: Annotated[
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 27.2K bytes - Viewed (1) -
fastapi/param_functions.py
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 62.4K bytes - Viewed (0) -
fastapi/openapi/models.py
headers: Optional[Dict[str, Union[Header, Reference]]] = None securitySchemes: Optional[Dict[str, Union[SecurityScheme, Reference]]] = None links: Optional[Dict[str, Union[Link, Reference]]] = None # Using Any for Specification Extensions callbacks: Optional[Dict[str, Union[Dict[str, PathItem], Reference, Any]]] = None pathItems: Optional[Dict[str, Union[PathItem, Reference]]] = None
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 17.3K 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 Mar 24 07:19:08 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 570 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial004_an_py39.py
from typing import Annotated, Union from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 674 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial004.py
from typing import Union from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Mar 10 18:49:18 GMT 2023 - 653 bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_an.py
from typing import Union from uuid import UUID from fastapi import Body, FastAPI from typing_extensions import Annotated app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: Annotated[Union[datetime, None], Body()] = None, end_datetime: Annotated[Union[datetime, None], Body()] = None, repeat_at: Annotated[Union[time, None], Body()] = None,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 890 bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial001.py
from fastapi import FastAPI, Path from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int = Path(title="The ID of the item to get", ge=0, le=1000), q: Union[str, None] = None,
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 596 bytes - Viewed (0)