- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for production (0.14 sec)
-
docs_src/response_model/tutorial002_py310.py
from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: str | None = None # Don't do this in production! @app.post("/user/") async def create_user(user: UserIn) -> UserIn:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 318 bytes - Viewed (0)