- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for UserOut (0.4 sec)
-
docs_src/response_model/tutorial003.py
class UserIn(BaseModel): username: str password: str email: EmailStr full_name: Union[str, None] = None class UserOut(BaseModel): username: str email: EmailStr full_name: Union[str, None] = None @app.post("/user/", response_model=UserOut) async def create_user(user: UserIn) -> Any:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 450 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.6K bytes - Viewed (0) -
docs_src/response_model/tutorial003_py310.py
class UserIn(BaseModel): username: str password: str email: EmailStr full_name: str | None = None class UserOut(BaseModel): username: str email: EmailStr full_name: str | None = None @app.post("/user/", response_model=UserOut) async def create_user(user: UserIn) -> Any:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 07 13:45:48 UTC 2023 - 431 bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="24" {!> ../../docs_src/response_model/tutorial003.py!} ``` //// ...we declared the `response_model` to be our model `UserOut`, that doesn't include the password: //// tab | Python 3.10+ ```Python hl_lines="22" {!> ../../docs_src/response_model/tutorial003_py310.py!} ``` //// //// tab | Python 3.8+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 18.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="24" {!> ../../docs_src/response_model/tutorial003.py!} ``` //// ...мы указали в `response_model` модель `UserOut`, в которой отсутствует поле, содержащее пароль - и он будет исключен из ответа: //// tab | Python 3.10+ ```Python hl_lines="22" {!> ../../docs_src/response_model/tutorial003_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 30.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
{!../../docs_src/response_model/tutorial003.py!} ``` 여기서 *경로 작동 함수*가 비밀번호를 포함하는 동일한 입력 사용자를 반환할지라도: ```Python hl_lines="24" {!../../docs_src/response_model/tutorial003.py!} ``` ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다: ```Python hl_lines="22" {!../../docs_src/response_model/tutorial003.py!} ``` 따라서 **FastAPI**는 출력 모델에서 선언하지 않은 모든 데이터를 (Pydantic을 사용하여) 필터링합니다. ## 문서에서 보기
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.1K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="24" {!> ../../docs_src/response_model/tutorial003_py310.py!} ``` //// ...👥 📣 `response_model` 👆 🏷 `UserOut`, 👈 🚫 🔌 🔐: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="22" {!> ../../docs_src/response_model/tutorial003.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.8K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="24" {!> ../../docs_src/response_model/tutorial003.py!} ``` //// ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält: //// tab | Python 3.10+ ```Python hl_lines="22" {!> ../../docs_src/response_model/tutorial003_py310.py!} ``` //// //// tab | Python 3.8+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="24" {!> ../../docs_src/response_model/tutorial003.py!} ``` //// ...我们已经将 `response_model` 声明为了不包含密码的 `UserOut` 模型: //// tab | Python 3.10+ ```Python hl_lines="22" {!> ../../docs_src/response_model/tutorial003_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="22"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0)