The content in this video has been seen in an earlier video but is still worth discussing itself. When you’re building an API it may be useful to have descriptive models that are similar, but not used for the same things. For example, your BaseUser model may have a username, email, and date of birth and your UserInDB model may have all of these fields but also a `hashed_password` field. Your UserIn model may have a plain text password. Your UserOut model may have only the fields described in your BaseUser model.
In this video you’ll see a basic introduction about how to incorporate this sort of model inheritance.
GitHub:
1 view
0
0
4 years ago 00:58:20 18
Python FAST API Tutorial
2 years ago 00:14:29 2
Fast API Tutorial, Part 2: Path Parameters
2 years ago 00:25:52 1
Fast API Tutorial, Part 26: Security
2 years ago 00:15:13 1
Fast API Tutorial, Part 4: Request Body
2 years ago 00:42:54 1
Fast API Tutorial, Part 29: SQL Relational Databases
2 years ago 00:25:29 1
Fast API Tutorial, Part 19: Handling Errors
3 years ago 01:48:33 23
Fast API Machine Learning Project Tutorial + Free Deployment | TensorFlow Lite | Heroku
2 years ago 00:14:10 1
Fast API Tutorial, Part 3: Query Parameters
2 years ago 00:13:00 21
Fast API Tutorial, Part 1: Introduction
2 years ago 00:12:49 3
Fast API Tutorial, Part 7: Body - Multiple Parameters
1 year ago 00:05:17 15
Как задеплоить ML модель? - через Fast API и Docker
2 years ago 00:08:40 1
Fast API Tutorial, Part 16: Form Fields
2 years ago 00:19:04 1
Fast API Tutorial, Part 14: Extra Models
2 years ago 00:05:54 1
Fast API Tutorial, Part 8: Body - Field
2 years ago 00:33:11 1
Fast API Tutorial, Part 27: Security with JWT
2 years ago 00:13:24 2
Fast API Tutorial, Part 23: Classes as Dependencies
2 years ago 00:11:15 2
Fast API Tutorial, Part 28: Middleware and CORS
2 years ago 00:20:22 1
Fast API Tutorial, Part 13: Response Model
2 years ago 00:09:45 45
Fast API Tutorial, Part 11: Extra Data Types
2 years ago 00:19:16 1
Fast API Tutorial, Part 5: Query Parameters and String Validation
2 years ago 00:19:34 1
Fast API Tutorial, Part 9: Body - Nested Models
2 years ago 00:10:55 1
Fast API Tutorial, Part 6: Path Parameters and Numeric Validation
2 years ago 00:06:57 1
Fast API Tutorial, Part 24: Sub-Dependencies
2 years ago 00:16:10 4
Fast API Tutorial, Part 20: Path Operation Configuration