Readme: padding in "Note" section
This commit is contained in:
parent
db341384a0
commit
fe1f12c3b2
1 changed files with 5 additions and 3 deletions
|
@ -102,6 +102,7 @@ You can
|
||||||
copying the contents of `pages.py`
|
copying the contents of `pages.py`
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
|
>
|
||||||
> In the paths files, FastAPI's decorators
|
> In the paths files, FastAPI's decorators
|
||||||
are called with `@self.app.`, not just `@app.`
|
are called with `@self.app.`, not just `@app.`
|
||||||
|
|
||||||
|
@ -154,6 +155,7 @@ and can be deleted or edited, except:
|
||||||
are stored in `app/sql/crud.py`
|
are stored in `app/sql/crud.py`
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
|
>
|
||||||
> As the official FastAPI documentation recommends (the link is above),
|
> As the official FastAPI documentation recommends (the link is above),
|
||||||
there are two schemas — `User` and `UserCreate` — for one `User` SQLAlchemy model.
|
there are two schemas — `User` and `UserCreate` — for one `User` SQLAlchemy model.
|
||||||
> The first one is needed for SELECT requests,
|
> The first one is needed for SELECT requests,
|
||||||
|
|
Loading…
Reference in a new issue