- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for create_product (0.39 sec)
-
tests/test_request_body_parameters_media_type.py
# but they are fine for testing requestBody with custom media_type class Product(BaseModel): name: str price: float class Shop(BaseModel): name: str @app.post("/products") async def create_product(data: Product = Body(media_type=media_type, embed=True)): pass # pragma: no cover @app.post("/shops") async def create_shop( data: Shop = Body(media_type=media_type),
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 6.4K bytes - Viewed (0)