mirror of https://github.com/tiangolo/fastapi.git
🔀 Merge PR #72
This commit is contained in:
parent
1c26e77a66
commit
3f7b7837fb
|
|
@ -29,7 +29,7 @@ John Doe
|
||||||
|
|
||||||
The function does the following:
|
The function does the following:
|
||||||
|
|
||||||
* Takes a `fist_name` and `last_name`.
|
* Takes a `first_name` and `last_name`.
|
||||||
* Converts the first letter of each one to upper case with `title()`.
|
* Converts the first letter of each one to upper case with `title()`.
|
||||||
* <abbr title="Puts them together, as one. With the contents of one after the other.">Concatenates</abbr> them with a space in the middle.
|
* <abbr title="Puts them together, as one. With the contents of one after the other.">Concatenates</abbr> them with a space in the middle.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ class FakeDB:
|
||||||
"johndoe": {
|
"johndoe": {
|
||||||
"username": "johndoe",
|
"username": "johndoe",
|
||||||
"password": "shouldbehashed",
|
"password": "shouldbehashed",
|
||||||
"fist_name": "John",
|
"first_name": "John",
|
||||||
"last_name": "Doe",
|
"last_name": "Doe",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -87,7 +87,7 @@ class TokenUserData(BaseModel):
|
||||||
class UserInDB(BaseModel):
|
class UserInDB(BaseModel):
|
||||||
username: str
|
username: str
|
||||||
password: str
|
password: str
|
||||||
fist_name: str
|
first_name: str
|
||||||
last_name: str
|
last_name: str
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -109,7 +109,7 @@ def require_user(
|
||||||
|
|
||||||
class UserOut(BaseModel):
|
class UserOut(BaseModel):
|
||||||
username: str
|
username: str
|
||||||
fist_name: str
|
first_name: str
|
||||||
last_name: str
|
last_name: str
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue