mirror of https://github.com/tiangolo/fastapi.git
📝 Highlight all new lines in docs example upgrade (#795)
This commit is contained in:
parent
fd5ba77b83
commit
cad6a6e0c1
|
|
@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
|
|||
|
||||
Declare the body using standard Python types, thanks to Pydantic.
|
||||
|
||||
|
||||
```Python hl_lines="2 7 8 9 10 24"
|
||||
```Python hl_lines="2 7 8 9 10 23 24 25"
|
||||
from fastapi import FastAPI
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
|
|
|||
|
|
@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request.
|
|||
|
||||
Declare the body using standard Python types, thanks to Pydantic.
|
||||
|
||||
|
||||
```Python hl_lines="2 7 8 9 10 24"
|
||||
```Python hl_lines="2 7 8 9 10 23 24 25"
|
||||
from fastapi import FastAPI
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue