Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6974bf2

Browse files
Add exercise for FastAPI chapter. Don't laugh!
1 parent 3c94608 commit 6974bf2

File tree

1 file changed

+1
-1
lines changed
  • days/009-012-modern-apis-with-fastapi

1 file changed

+1
-1
lines changed

‎days/009-012-modern-apis-with-fastapi/readme.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The above api endpoint `some_action` is fun, but takes no data. If we wanted to
4747
def some_action(start_index):
4848
```
4949

50-
But this is a string and index implies an integer. We could cast it ourselves, but FastAPI does that for us with validation by simply specifying the type in code, some_action(start_index**: int**):
50+
But this is a string and index implies an integer. We could cast it ourselves, but FastAPI does that for us with validation by simply specifying the type in code, some_action(start_index: **int**):
5151

5252
```python
5353
@api.get('/{start_index}')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /