Skip to content

Commit

Permalink
refine quick start docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjunqian committed Nov 25, 2024
1 parent 7802ad1 commit 6a808b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Let's try an invalid parameter request at http://127.0.0.1:8000/, and we can see
In this chapter, we learned to avoid the problem of hardcoding parameter names by using structured request objects, allowing for better maintenance of parameter names, descriptions, and type definitions.

However, there are still areas for improvement in this sample code:
- The `r.Parse` non-business operation and should be handled separately from business logic.
- The `r.Parse` is non-business operation and should be handled separately from business logic.
- If there are many APIs, performing `r.Parse` in all of them becomes cumbersome.
- Regarding data validation, if there are many API parameters, performing numerous `if` data validation operations becomes overly cumbersome.

Expand Down

0 comments on commit 6a808b0

Please sign in to comment.