Skip to content

Commit

Permalink
Merge pull request #61 from vishket/master
Browse files Browse the repository at this point in the history
Fix broken examples link in README
  • Loading branch information
bauerji authored Jan 2, 2023
2 parents ebb08fe + bcf8e63 commit 4b9b7c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get(query: QueryModel):
)
```

<a href="blob/master/example_app/example.py">
<a href="example_app/example.py">
See the full example app here
</a>

Expand Down Expand Up @@ -160,15 +160,15 @@ class RequestBodyModel(BaseModel):
# Example2: request body only
@app.route("/", methods=["POST"])
@validate()
def post(body: RequestBodyModel):
def post(body: RequestBodyModel):
name = body.name
nickname = body.nickname
return ResponseModel(
name=name, nickname=nickname,id=0, age=1000
)
```

<a href="blob/master/example_app/example.py">
<a href="example_app/example.py">
See the full example app here
</a>

Expand All @@ -188,7 +188,7 @@ def get_and_post(body: RequestBodyModel,query: QueryModel):
)
```

<a href="blob/master/example_app/example.py">
<a href="example_app/example.py">
See the full example app here
</a>

Expand All @@ -203,15 +203,15 @@ class RequestFormDataModel(BaseModel):
# Example2: request body only
@app.route("/", methods=["POST"])
@validate()
def post(form: RequestFormDataModel):
def post(form: RequestFormDataModel):
name = form.name
nickname = form.nickname
return ResponseModel(
name=name, nickname=nickname,id=0, age=1000
)
```

<a href="blob/master/example_app/example.py">
<a href="example_app/example.py">
See the full example app here
</a>

Expand Down

0 comments on commit 4b9b7c6

Please sign in to comment.