mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-12 05:26:45 +00:00
📝 Highlight all new lines in docs example upgrade (#795)
This commit is contained in:
parent
fd5ba77b83
commit
cad6a6e0c1
2 changed files with 2 additions and 4 deletions
|
|
@ -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.
|
Declare the body using standard Python types, thanks to Pydantic.
|
||||||
|
|
||||||
|
```Python hl_lines="2 7 8 9 10 23 24 25"
|
||||||
```Python hl_lines="2 7 8 9 10 24"
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from pydantic import BaseModel
|
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.
|
Declare the body using standard Python types, thanks to Pydantic.
|
||||||
|
|
||||||
|
```Python hl_lines="2 7 8 9 10 23 24 25"
|
||||||
```Python hl_lines="2 7 8 9 10 24"
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue