Skip to content

Commit 91ee94c

Browse files
Update read-one.md
1 parent 129135f commit 91ee94c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/tutorial/fastapi/read-one.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ If you need to refresh how *path parameters* work, including their data validati
2020

2121
For example, to get the hero with ID `2` we would send a `GET` request to:
2222

23+
```
24+
/heroes/2
25+
```
26+
2327
## Handling Errors
2428

2529
Then, because FastAPI already takes care of making sure that the `hero_id` is an actual integer, we can use it directly with `Hero.get()` to try and get one hero by that ID.

0 commit comments

Comments
 (0)